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 194599 - TreeMaker.Literal unnecessarily escapes Unicode characters
Summary: TreeMaker.Literal unnecessarily escapes Unicode characters
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0
Hardware: PC Linux
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2011-01-21 19:00 UTC by Jesse Glick
Modified: 2016-07-07 07:15 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 Jesse Glick 2011-01-21 19:00:18 UTC
If you have a *.java in a project set to use UTF-8 acc. to FileEncodingQuery, and you call wc.getTreeMaker().Literal("čau") and insert the result somewhere in the document, you will "\u010dau" even though the source file is capable of storing the character unescaped. Unicode escapes should be used only when the javac encoding could not otherwise represent the character.
Comment 1 Martin Balin 2016-07-07 07:15:37 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss