Escape \uxxx in properties too
Closed this issue · 1 comments
dmatej commented
Property values with \ukjhfksjhs sequences, ie. windows paths, are not escaped. Seems the same problem is in native2ascii program, but that is removed from newer java implementations while the syntax of Properties remained same and this causes exceptions.
https://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.3
dmatej commented
This idea brings problems:
- if property files already contain escaped unicode characters, this will currupt them
- if these would be ie ř after the backslash and the backslash would not be escaped, the backslash of the unicode escape block would be parsed as escaped backslash and whole property would be corrupted (and parsing would fail).
- escaping backslashes would make multiline properties impossible.
Resolution: escape bacslashes manually if you explicitly need an backslash character. Neither native2ascii program nor this plugin know your intentions.