java - encoding issue in my web application -
i facing encoding issue in web application.
i using properties file (resource bundle) store language text.
if check encoding of properties file using notepad, it's utf-8 , see proper arabic character when open in notepad.
login=دخول
when build application using jdeveloper, in properties file under classes folder, arabic characters converted this:
login=\u062f\u062e\u0648\u0644
also encoding of file shown ansi in notepad.
surprisingly, in browser, characters appeared fine (دخول).
now when build application using ant, i've copy task copying properties file src folder classes folder. after running build script, if see encoding of properties file under classes folder, still utf-8 , characters in arabic only.
however in browser, characters doesn't appear properly.
as far know utf-8 encoding supposed cater languages in case wrong somewhere.
i tried following in copy task:
encoding="utf-8" outputencoding="utf-8"
however still no luck.
anyone know wrong?
thanks.
well, comment , link provided edwin did help. moved translations xml bundles (also called xlf or xliff bundle in adf) , working fine.
thanks.
Comments
Post a Comment