Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 194599 - TreeMaker.Literal unnecessarily escapes Unicode characters
TreeMaker.Literal unnecessarily escapes Unicode characters
Product: java
Classification: Unclassified
Component: Source
PC Linux
: P4 (vote)
Assigned To: Svata Dedic
: I18N
Depends on:
  Show dependency treegraph
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


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

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo