This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 173656 - indian languages not shown in property file
Summary: indian languages not shown in property file
Status: RESOLVED INCOMPLETE
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2009-10-02 19:56 UTC by sony213002
Modified: 2009-11-09 11:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
properties file (449 bytes, text/plain)
2009-10-04 10:59 UTC, sony213002
Details
UTF-Project (20.79 KB, application/octet-stream)
2009-10-05 18:02 UTC, sony213002
Details
screen shot (280.92 KB, image/jpeg)
2009-10-05 18:16 UTC, sony213002
Details
windows language support in control pannel (86.24 KB, image/jpeg)
2009-10-05 18:19 UTC, sony213002
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sony213002 2009-10-02 19:56:47 UTC
The Indian languages is shows as square , not as languages in the property files, for eample if we create a file named
message_ml_IN.properties and enter the following key
account.created.body.account.created=\u0D15\u0D47\u0D30\u0D33 \u0D2C\u0D41\u0D15\u0D4D\u0D15\u0D4D\u200C 
\u0D38\u0D4D\u0D31\u0D4D\u0D31\u0D4B\u0D31\u0D3F\u0D32\u0D4D\u200D \u0D28\u0D3F\u0D19\u0D4D\u0D19\u0D33\u0D4D\u200D 
\u0D12\u0D30\u0D41 \u0D05\u0D17\u0D24\u0D4D\u0D35\u0D02 
\u0D0E\u0D1F\u0D41\u0D24\u0D4D\u0D24\u0D3F\u0D30\u0D3F\u0D15\u0D41\u0D28\u0D4D\u0D28\u0D41

then in the editor square is shown, not the malayalam langauge, , but ofcouse if i type hindi language , then it is shown 
correct.
Comment 1 sony213002 2009-10-04 10:59:33 UTC
Created attachment 88796 [details]
properties file
Comment 2 Vitezslav Stejskal 2009-10-05 08:58:06 UTC
What's your encoding in project properties -> Sources -> Encoding?
Comment 3 sony213002 2009-10-05 18:02:22 UTC
Created attachment 88857 [details]
UTF-Project
Comment 4 sony213002 2009-10-05 18:16:46 UTC
Created attachment 88859 [details]
screen shot
Comment 5 sony213002 2009-10-05 18:19:18 UTC
Created attachment 88860 [details]
windows language support in control pannel
Comment 6 sony213002 2009-10-05 18:33:07 UTC
Yes encoding is UTF-8, please see the attached project and property files in English, Malayalam and Hindi languages
also see the attached screen shot image (netbeans_error.jpg),
my OS is windows XP SP3 with language support enabled for all right to left languages and asian languages, see the 
attached screen shot of control pannel-->Regional and Language Options-->Language Tab 
(windows_language_support_enabled.jpg)
the Malayalam font that is shipped with Windows SP2 and 3 is named "Kartika" (kartika.ttf) in windows\fonts folder.
other Unicode fonts are also available from free software movements, 
one of them is named as varamozhi (https://sites.google.com/site/cibu/) 
which use unicode font named "AnjaliOldLipi" 
(http://downloads.sourceforge.net/project/varamozhi/0%20Installer%20for%20AnjaliOldLipi/1.03.03/AnjaliFontInstaller1.03.
03.exe), which is better rendering and smoothing full unicode keys supported.
Comment 7 Victor Vasilyev 2009-11-09 11:14:49 UTC
I would suppose that the required Malayalam font is not installed in the JRE.
Please, check that other Java applications can display the Malayalam font, i.e. not only the native applications.

I hope the following links will be useful:
http://www.java2s.com/Code/Java/2D-Graphics-GUI/Listallavailablefontsproviedinthesystem.htm
http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp#desktop-rendering
http://java.sun.com/javase/6/docs/technotes/guides/intl/fontconfig.html

Also, you might try to play with fonts in Tools/Options/Fonts&Colors