I have a requirement where a client will supply properties file in arabic where i have to convert the file(arabic.properties) to unicode. The file contains more than 500 lines.please help me to write the code to convert “arabic character” to “unicode character”.
Share
Using command line go to Java folder, and write:
UPDATE
Not sure what exactly you mean by not proper, but try this scenario:
Open notepad and write something in Arabic: let’s say:
Then save it as test.txt and make sure to choose UTF-8 from Encoding.
Now from the command line:
Now test_ar.properties contain:
Notice, sometimes native2ascii might add
\ufeffas the first character in the file. You will need to remove it manually if you found it.