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.
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)
Created attachment 109322 [details] Java Source in Unicode Format
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.
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
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.
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/
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.
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 -----------------------------------------------------------------
jaisondaniel, I am facing the same problem for punjabi text... netbeans shows the squares in stead of punjabi text.
*** Bug 243378 has been marked as a duplicate of this bug. ***
plsease provide me the solution punjabi language
(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
Mr.gurpinder, tell me your email id to contact u, I will provide you solution there
please tell me how i install punjabi font in netbeans 8.0.1 please reply me as soon as possible