B4J Question [RESOLVED] ReadMap read non-latin values

b4auser1

Well-Known Member
Licensed User
Longtime User
I have text file in charset: UTF-8.
How to read non-latin values correctly with ReadMap ?
Now It see that ReadMap reads such data incorrectly.
 

b4auser1

Well-Known Member
Licensed User
Longtime User
I found explanation and solution:
http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html#load(java.io.InputStream)

Reads a property list (key and element pairs) from the input byte stream. The input stream is in a simple line-oriented format as specified in load(Reader) and is assumed to use the ISO 8859-1 character encoding; that is each byte is one Latin1 character. Characters not in Latin1, and certain special characters, are represented in keys and elements using Unicode escapes as defined in section 3.3 of The Java™ Language Specification.

https://native2ascii.net/
http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/native2ascii.html
 
Upvote 0
Top