How to add Hindi language support in struts webapplication

I am building a web application using struts 1.2. In which I have to add Hindi language support to my web application. I created an Application_hi.properties file in which I have a key equal to the Hindi word. But it gives an error like "some kind of character cannot be a card using ISO-8859-1 character encoding."

thanks in advance................

+3
source share
2 answers

Hindi does not fall under ISO-8859-1 Character encoding. The content in the property files is encoded in 8-bit ISO 8859-1 characters (aka Latin-1), which contains most of the "regular" characters, but does not support language specific characters such like ü Ü é or ñ.

So, I used other utilities to convert from one encoding to another encoding. I think you can check this link for more information and it may be convenient for you 1) http://okapi.sourceforge.net/Release/Rainbow/Help /index.html 2) http://okapi.sourceforge.net/Release/Utilities/Help/encodingconversion.htm

Hope this helps !!!!

+1
source

You must use UTF-8 character encoding.

+1
source

Source: https://habr.com/ru/post/1750430/


All Articles