Bug 194599 - TreeMaker.Literal unnecessarily escapes Unicode characters
TreeMaker.Literal unnecessarily escapes Unicode characters
Status: NEW
Product: java
Classification: Unclassified
Component: Source
7.0
PC Linux
: P4 (vote)
: TBD
Assigned To: Svata Dedic
issues@java
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-21 19:00 UTC by Jesse Glick
Modified: 2013-09-02 14:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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.


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