3
votes

I researched on google and I found this article, but my codes still being saved as ansi. Notepad++ has a feature to change/convert the code charset, does someone know if there exists any option in Netbeans?

nebeans.conf:

netbeans_default_options="-J-Dorg.glassfish.v3.installRoot=\"E:\Programs\sges-v3-prelude\" -J-Dcom.sun.aas.installRoot=\"E:\Programs\AppServer\" -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Duser.language=en -J-Duser.region=US -J-Dfile.encoding=UTF-8"

project.properties:


include.path=${php.global.include.path}
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=true
web.root=.

Thanks in advance!

2

2 Answers

1
votes

While Boro is correct, in a sense so is Krishna. UTF-8 is designed to be backwards compatible with ASCII. So if you save a file in UTF-8, and use only characters that can be found in ASCII, you essentially have an ASCII file. UTF-8 extends ASCII encoding to give a way to encode other characters using more than one byte if necessary.

-3
votes

Just FYI- UTF8 characters map on to US-ANSI. Meaning: 'A'(ASCII value 65) in utf8 is the same. So you would not know the difference if your program is written in ANSI or UTF-8.

Edit - Pardon my English. US-ANSI characters map on to UTF8 character set. What I mean is: US ANSI ASCII from values 0 to 127 is same as that of 0 to 127 of UTF8 and vice-verse is not true.