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 48341 - certain symbols saved improperly
Summary: certain symbols saved improperly
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2004-09-01 23:47 UTC by trenta
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trenta 2004-09-01 23:47:03 UTC
The '©' symbol get's written to a file as '�'.

I'm using dev-july29 QBuild
Comment 1 Miloslav Metelka 2004-10-12 11:48:50 UTC
What are your locale settings? Could you please send me an output from
running of list-properties.jar available at
http://editor.netbeans.org/servlets/ProjectDownloadList ? Thanks.
Comment 2 trenta 2004-10-15 16:22:37 UTC
Here you go.

-- listing properties --
java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
sun.boot.library.path=/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/...
java.vm.version=1.4.2_05-b04
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=:
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
user.country=US
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/data/MyDocuments/java/uPortal/uporta...
java.runtime.version=1.4.2_05-b04
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/...
os.arch=i386
java.io.tmpdir=/tmp
line.separator=

java.vm.specification.vendor=Sun Microsystems Inc.
os.name=Linux
sun.java2d.fontpath=
java.library.path=/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/...
java.specification.name=Java Platform API Specification
java.class.version=48.0
java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferences...
os.version=2.4.21-15.0.4.ELsmp
user.home=/home/trenta
user.timezone=
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=UTF-8
java.specification.version=1.4
user.name=trenta
java.class.path=../../list-properties.jar
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
java.vm.info=mixed mode
java.version=1.4.2_05
java.ext.dirs=/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/...
sun.boot.class.path=/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/...
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.cpu.isalist=
Comment 3 Roman Strobl 2005-01-10 13:22:18 UTC
Changed target milestone to TBD.
Comment 4 Miloslav Metelka 2005-03-17 09:08:13 UTC
What type of file the given character was written to? Was it an html file?
Comment 5 trenta 2005-03-17 16:14:29 UTC
It was a java source comment.
Comment 6 Miloslav Metelka 2005-03-22 13:47:07 UTC
In that case please check that you have Tools->Options->Java Sources->Default
Encoding set to empty string.
I have searched a unicode description of 65533 character which is \uFFFD and
according to http://www.fileformat.info/info/unicode/char/fffd/index.htm it is a
replacement character that is used once the input character cannot be
represented by any of the unicode characters. I have also searched for the
copyright character unicode representation it's \u00a9
http://www.fileformat.info/info/unicode/char/00a9/index.htm so it looks like the
char-to-byte converter was unable to properly write the character into the file.
I do not think that NB would affect that writing process anyhow. Could you
please run
java -jar $jdk/demo/jfc/Notepad/Notepad.jar and try to type and save the
copyright character there. If the character will be properly written please
reopen this issue. Thanks.