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

Summary: TreeMaker.Literal unnecessarily escapes Unicode characters
Product: java Reporter: Jesse Glick <jglick>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: I18N
Priority: P4    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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