Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6532129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:57:45+00:00 2026-05-25T09:57:45+00:00

We are trying to internationalize our Spring MVC web application in Hindi language. When

  • 0

We are trying to internationalize our Spring MVC web application in Hindi language. When we try to copy the Hindi text in the properties file, the properties file shows small boxes in places of Hindi characters.

When we run the application and see the JSP, it shows questions marks (???????) in place of Hindi characters.

Edit:

My properties file has following contents.

login.message=\u0915\u0943\u092a\u092f\u093e \u0905\u092a\u0928\u0947 \u0916\u093e\u0924\u0947 \u092e\u0947\u0902 \u0932\u0949\u0917 \u0911\u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0928\u0940\u091a\u0947 \u0915\u0947 \u092b\u093e\u0930\u094d\u092e \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0947\u0902

I have used following command to get this encoded string.

native2ascii -encoding utf-8 ApplicationResources_hi.properties gen\ApplicationResources_hi.properties

My JSP page has following line in head section

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Do I need to do anything else? Sorry I may be missing something here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:57:46+00:00Added an answer on May 25, 2026 at 9:57 am

    You actually have to get 2 separate steps right for this to work:

    1. getting the text from your .properties file to your Java code correctly and
    2. getting the text from your Java code to the browser in a way that it understands.

    The first one is somewhat strange: .properties files are defined to use the ISO-8859-1 encoding, which doesn’t support arbitrary Unicode characters, but luckily .properties file support the same Unicode escapes that Java source code also supports, namely \uxxxx.

    Now writing those escapes by hand can become nasty, so there are basically two alternatives:

    • write a .properties file with the encoding of your choice (UTF-8 probably) and use native2ascii to convert it to the propper encoding
    • use a dedicated .properties editor that already does this (and usually a bit more) behind the scenes

    Once this works (verify it in the debugger by looking at the character values (String.charAt() of some localized strings), you need to make sure that the browser actually receives the data in the correct way.

    The easiest way here is to make sure that you use UTF-8 encoding to get the data to the browser, since UTF-8 can represent all possible Unicode codepoints.

    If you’re using JSP to produce your output, then you can use something like this to specify that you want UTF-8 output:

    <%@ page contentType="text/html; charset=utf-8" language="java" %>
    

    See the Java EE Tutorial for details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to honor a feature request from our customers, I'd like that my application,
I'm trying to internationalize a test application with GWT following the instruction and I
I am trying to internationalize a UIBinder application with property files. Since we have
Trying to make a MySQL-based application support MS SQL, I ran into the following
Trying to create a QtRuby application, I get the following error: /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation
Trying to get a reference to the worksheets (using Excel interop): Excel.Application xl =
I'm trying to internationalize all the pages on my CakePHP site with the following
I'm trying to internationalize my webpages by using the {% trans string %} method
Trying to get production application to work with hsqldb. The application is built with
I'm trying to alter the existing number formatting in my company's application to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.