Saturday, September 24, 2011

Unicode character appear as Question Mark or JSP not Support Language Translation

Nowadays most of the application are supposed to support foreign Language for that we need to create properties file.
In the properties file we translate each and every word and save them using key value pair.
Example file:
languageTranslation_ru.properties
name = имя
password = пароль
submit = представлять
signIn = Войти приложений

Either use Unicode converter or directly place the translated value in your properties file. You set it up correctly and running your application,

Surprisingly you are getting question mark "???" in unicode converted place like below screen shot.
Everything you did correctly, but why its not working. In your jsp page please check whether you included below attribute.
<%@ page contentType="text/html; charset=UTF-8"%>
If not include it and you will get expected output. Check below screen shot for actual result

10 comments:

Unknown said...

Hi,A writers website would include a biography of Web Design Cochin, a catalog of published books and works, perhaps excerpts from some works, links to publications on sites a link to the writer's blog, reviews and comments on the author's publications. You get the idea, and that is to build a following, a fan base to which future publications can be directly marketed. Thanks.....

de said...

Java EE online training | Java Training in Chennai | Java 360

Belinha Ruiz said...

I want to share with you all on how I got my loan from a very good and honest loan company registered in the USA, as I was applying as a start-up loan it took me several documents to meet up with their conditions but God Willing I got through and it was smooth to work with as an entrepreneur.Contact   pedroloanss@gmail.com for all kinds of financial assistance such as loans and investment facilities.

Ashwini said...

nice informative post. Thanks you for sharing.
Wordpress Development
Mobile App Development

French language classes in Chennai said...

Thanks for the blog, Its good and valuable information.
Spanish Language Courses in Chennai | Spanish Classes in Chennai

3d Rendering China said...

3D Rendering China provides many services for a purpose like 3d Industrial modeling,3d Architectural Rendering, 3d Medical Illustration,3d Product modeling and 3d design, 3d Interior Visualisation, 3d Animation Video etc if you need design home, office and industry we make 3D design 100% unique and high quality professional creative idea and special concentrate for finishing, We 3D architectural renders supportive and trusted services.


3d rendering china
3d architectural rendering china
3d interior designs china
3d product rendering china

Anonymous said...

Excellent Blog. Thank you so much for sharing
HIV Specialist Doctor Near Me | HIV Doctor - Malaivel Siddha Hospital

vishnu said...

Thank you so much for sharing this nice article.
Introducing our Next Level Complete Laundry Management & Dry-Cleaning software. Connect with us to get accelerated and cost-effective Laundry Management Software.
Visit Now: https://syswash.net/

Pilot Industries Limited said...

Thanks for Nice and Informative Post. Great info!
clean power for the planet

Digital marketing said...

great post
check out our digital marketing course with paid internship
digital marketing institute in coimbatore with paid internship