B4J Question Read a map text file created by 3rd party software

le_toubib

Active Member
Licensed User
Longtime User
Hi,
I have to read a map on a file created by another software.
Simple key value store.
File.readmap works fine unless there s arabic letters where it shows jiberish characters...
How do I read them normally?
Should I convert the text file to a specific encoding ? Which?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

keirS

Well-Known Member
Licensed User
Longtime User
It should be encoded as ISO-8859-1 AKA Latin1 as that is what the Java .properties files use. Unless you are using Java 9 or later in which case it's UTF8.
 
Upvote 0
Top