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 7605971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:17:52+00:00 2026-05-31T00:17:52+00:00

I am trying to display chines characters but its showing ??????????. In my spring-servlet

  • 0

I am trying to display chines characters but its showing ??????????. In my spring-servlet I have

 <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    <property name="basename" value="classpath:messages"/>
    <property name="defaultEncoding" value="UTF-8"/>
</bean>

and in my massages.property I have added some chines characters like this
這對中國的考驗

First line of my .jsp file I have

<%@ page pageEncoding="UTF-8" %>

If I encode the chines in ascii format then its working fine. but I don’t want to do that. Is there anything I am missing.

Please help.

  • 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-31T00:17:54+00:00Added an answer on May 31, 2026 at 12:17 am

    As per their documentation, the properties files are by default read using ISO-8859-1 encoding. You’d need to use unicode escapes like as in \uXXXX for each character beyond the supported range of ISO-8859-1. JDK offers the native2ascii tool for this in the /bin folder. You should then use the converted properties file instead.

    E.g. (in command console)

    native2ascii -encoding UTF-8 some.properties.utf8 some.properties
    

    Where some.properties.utf8 is the properties file which you saved in UTF-8 and some.properties is the converted properties file which you should instead use in your web application.

    The

    some.key = 這對中國的考驗
    

    would then become

    some.key = \u9019\u5c0d\u4e2d\u570b\u7684\u8003\u9a57
    

    Most IDEs like Eclipse, IntelliJ and maybe also Netbeans (not sure as I’ve never used it) will automatically do this when you use the builtin properties file editor.

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

Sidebar

Related Questions

I'm trying to display Chinese characters encoded in UTF-8 in a PlainTextEdit control, but
I'm trying to work with a database that I have, but I can't display
I have a some Chinese characters that I'm trying to display on a Kentico-powered
trying to display data only after variables have been set. $(document).ready(function () { function
I have an array of Person pocos, populated below. I'm trying display them alphabetically
Im trying to display text but that isnt working. I create a dynamic text
Im trying to display this listview, but I keep getting a: 07-17 21:14:22.233: ERROR/AndroidRuntime(349):
Im trying to display two list: one for categories and brand but only the
I trying to display image in picture box. The application have two part. First
I am trying display values in a datagrid in my application. I have all

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.