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 199976 - Support Unicode encoding on Netbeans (for Punjabi language)
Summary: Support Unicode encoding on Netbeans (for Punjabi language)
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.3.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: I18N
: 243378 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-08 08:36 UTC by jaisondaniel
Modified: 2017-08-17 06:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java Source in Unicode Format (478 bytes, application/octet-stream)
2011-07-08 08:37 UTC, jaisondaniel
Details
Snapshot compare with Netbeans & Notepad++(other editor) (131.45 KB, image/png)
2012-06-11 13:30 UTC, jaisondaniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jaisondaniel 2011-07-08 08:36:26 UTC
The java source file is Unicode format(Unicode Little Endian).
I am able to compile my java source with the option "-encoding unicode". But if I tried to use netbeans I am not seeing the encoding name as "unicode". So after I create the project closed the netbeans IDE and manually edit the file "nbproject\project.xml" to replace "utf-8" with "unicode". no use, still the editor not showing properly showing as boxes. Attached the java source with Unicode format(Unicode Little Endian)
Comment 1 jaisondaniel 2011-07-08 08:37:48 UTC
Created attachment 109322 [details]
Java Source in Unicode Format
Comment 2 Miloslav Metelka 2012-05-30 08:37:20 UTC
Could you attach your messages.log?
Please download list-properties.jar from http://netbeans.org/projects/editor/downloads and run it with

 java -jar list-properties.jar

and attach the output to issue. Thanks.
Comment 3 jaisondaniel 2012-06-11 09:15:48 UTC
D: $ java -jar e:\dwn\list-properties.jar
-- listing properties --
java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=D:\sfw\dev\jdk\jdk1.6.0_20\jre\bin
java.vm.version=16.3-b01
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=;
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg=sun.io
user.country=IN
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=Service Pack 1
java.vm.specification.name=Java Virtual Machine Specification
user.dir=D:\dev\netbeans_v7.1
java.runtime.version=1.6.0_20-b02
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=D:\sfw\dev\jdk\jdk1.6.0_20\jre\lib\en...
os.arch=amd64
java.io.tmpdir=C:\Users\root\AppData\Local\Temp\
line.separator=

java.vm.specification.vendor=Sun Microsystems Inc.
user.variant=
os.name=Windows 7
sun.jnu.encoding=Cp1252
java.library.path=D:\sfw\dev\jdk\jdk1.6.0_20\bin;.;C:\W...
java.specification.name=Java Platform API Specification
java.class.version=50.0
sun.management.compiler=HotSpot 64-Bit Server Compiler
os.version=6.1
user.home=C:\Users\root
user.timezone=
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.6
user.name=root
java.class.path=e:\dwn\list-properties.jar
java.vm.specification.version=1.0
sun.arch.data.model=64
java.home=D:\sfw\dev\jdk\jdk1.6.0_20\jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
java.version=1.6.0_20
java.ext.dirs=D:\sfw\dev\jdk\jdk1.6.0_20\jre\lib\ex...
sun.boot.class.path=D:\sfw\dev\jdk\jdk1.6.0_20\jre\lib\re...
java.vendor=Sun Microsystems Inc.
file.separator=\
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.desktop=windows
sun.cpu.isalist=amd64
Comment 4 jaisondaniel 2012-06-11 13:30:08 UTC
Created attachment 120668 [details]
Snapshot compare with Netbeans & Notepad++(other editor)

Please check the snapshot compare with Netbeans and Notepad++. In notepad++ it shows correctly. But in Netbeans it shows boxes as all the tamil characters.
Comment 5 Miloslav Metelka 2012-06-12 12:01:10 UTC
Your report shows

file.encoding=Cp1252

but you need UTF8 so either for project-only UTF8 encoding see http://wiki.netbeans.org/FaqI18nProjectEncoding 

or for the whole IDE see http://wp.uberdose.com/2007/05/07/netbeans-and-utf-8/
Comment 6 jaisondaniel 2012-07-03 13:45:16 UTC
That report I ran from command prompt. It always the encoding is Cp1252.
In my netbeans project, I always use UTF-8 encoding.
And I also tried with UTF-16 encoding. But still the issue remains.
Comment 7 jaisondaniel 2012-07-04 06:39:22 UTC
Sorry now I found this issue not from Netbeans instead of it is a JDK/JRE issue.

The solution in Windows JRE is
===============================
Copy JRE_HOME/lib/fontconfig.properties.src to JRE_HOME/lib/fontconfig.properties. and edit this file as the following diff.

Diff on JRE 1.7.0 u4 32 bit
-----------------------------------------------------------------
D:\dev\jdk1.7.0_04_32bit\jre\lib> diff -bc fontconfig.properties.src fontconfig.properties
*** fontconfig.properties.src   Mon Jun 11 13:42:13 2012
--- fontconfig.properties       Mon Jun 11 15:09:42 2012
***************
*** 42,47 ****
--- 42,48 ----
  allfonts.symbol=Symbol
  allfonts.thai=Lucida Sans Regular
  allfonts.georgian=Sylfaen
+ allfonts.tamil=Latha

  serif.plain.alphabetic=Times New Roman
  serif.plain.chinese-ms950=MingLiU
***************
*** 185,191 ****

  # Search Sequences

! sequence.allfonts=alphabetic/default,dingbats,symbol

  sequence.serif.GBK=alphabetic,chinese-ms936,dingbats,symbol,chinese-ms936-extb
  sequence.sansserif.GBK=alphabetic,chinese-ms936,dingbats,symbol,chinese-ms936-extb
--- 186,192 ----

  # Search Sequences

! sequence.allfonts=alphabetic/default,dingbats,symbol,tamil

  sequence.serif.GBK=alphabetic,chinese-ms936,dingbats,symbol,chinese-ms936-extb
  sequence.sansserif.GBK=alphabetic,chinese-ms936,dingbats,symbol,chinese-ms936-extb
***************
*** 219,224 ****
--- 220,226 ----

  sequence.allfonts.UTF-8.hi=alphabetic/1252,devanagari,dingbats,symbol
  sequence.allfonts.UTF-8.ja=alphabetic,japanese,devanagari,dingbats,symbol
+ sequence.allfonts.UTF-8.ta=alphabetic/1252,tamil,dingbats,symbol

  sequence.allfonts.windows-1255=hebrew,alphabetic/1252,dingbats,symbol

-----------------------------------------------------------------
Comment 8 amandeep 2014-03-30 06:54:17 UTC
jaisondaniel, 
I am facing the same problem for punjabi text... netbeans shows the squares in stead of punjabi text.
Comment 9 Ralph Ruijs 2014-03-30 07:38:13 UTC
*** Bug 243378 has been marked as a duplicate of this bug. ***
Comment 10 amandeep 2014-04-01 10:08:26 UTC
plsease provide me the solution punjabi language
Comment 11 gurpinder 2014-04-07 13:54:36 UTC
(In reply to amandeep from comment #10)
> plsease provide me the solution punjabi language

please tell me how i install punjabi font in netbeans 7.3.1
please reply me as soon as possible
Comment 12 amandeep 2014-04-17 14:51:48 UTC
Mr.gurpinder, tell me your email id to contact u,
 I will provide you solution there
Comment 13 yasar1023 2017-08-17 06:34:11 UTC
please tell me how i install punjabi font in netbeans 8.0.1
please reply me as soon as possible