• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Struts 2 - i18n Chinese localization issue

Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A properties file without encoded

Struts 2 view page

In this case, the s:textfield, s:password and s:text are able to display the Chinese message correctly, but the s:submit and getText() are just display some garbage characters.

A properties file with data encoded (native2ascii)

The result is totally reverse, now the s:submit and getText() are able to display the Chinese correctly, but failed for s:textfield, s:password and s:text . AR... .

In my testing, the above Struts 2 code is work fine in English like characters : France or German, but only failed in Chinese or Japanese.Any idea or help is greatly appreciated. Thanks.

I created a blog post about to simulate this problem with screen shot and source code attached.

Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic