i18n with special chars
Guys, I have read all existing threads (I believe so) about this topic and my problem still remains.
My app already uses Spring resources (LocalChangeInterceptor and SessionLocaleResolver) to change languages. And it works perfectly for English and Portuguese.
Now I need to include simplified chinese (like this 客).
My header page (included in all pages) contains:
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
Also, I changed the properties file's encoding type to UTF-8.
Shouldnt these configs be enough?
The only thing made it work was Native2Ascii tool. But I'd like to keep the original file instead of having the Unicode transformed one.
Any suggestion is welcome.
Property files are by definition encoded in ISO 8859-1 (http://download.oracle.com/docs/cd/E...roperties.html).
One way to get around this, is to use ReloadableResourceBundleMessageSource, where you can set the default encoding. Be aware though, that your property files will only work with this particular implementation.
Perfect. Tks a lot.
Originally Posted by F.Degenaar