Results 1 to 3 of 3

Thread: What is Missing from my Spring 3 i18n?

  1. #1

    Default What is Missing from my Spring 3 i18n?

    I am working a non-Latin language localization of a Spring 3 project. The language shows up properly from the message file. And I already have the UTF-8 filter defined in web.xml file. The language characters, however, are not correct stored in DB. I had successfully completed the same language localization with Spring 1 and 2. I use DbVisualizer to have a look and inspect the data in database. Data from the old projects show correctly, but not the new one. The database configuration hasn't be changed.

    What is missing?
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  2. #2
    Join Date
    Jul 2010
    Location
    Venice, Italy
    Posts
    709

    Default

    How are you configuring your MessageSource? Do you explicitly set the defaultEncoding property to UTF-8 like this?
    Code:
    <property name="defaultEncoding" value="UTF-8"/>
    If not, that may be the source of your problems.

  3. #3

    Default

    Quote Originally Posted by Enrico Pizzi View Post
    How are you configuring your MessageSource? Do you explicitly set the defaultEncoding property to UTF-8 like this?
    Code:
    <property name="defaultEncoding" value="UTF-8"/>
    If not, that may be the source of your problems.
    I don't follow you. Are you talking about message file configuration? The problem is in the Database.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •