This is how I solve the problem:
into resource files I write the Unicode of special
charcters.
So, for your Español I write in msg_es.properties something like this
Espa\uUnicode_Code_for_ñol.
You can use native2ascii tool to convert a properties file from Español to
Espa\uUnicode_Code_for_ñol.
Hope this helps,
Alin.
By the way, I'm using Tomcat 5 where I set URIEncoding="UTF-8" in the
Connector tag. Also have a catch all filter
setting.
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
All is good except for display
of content from my ResourceBundle.
I'd really appreciate any ideas any
one may have.
Thanks, Ken
On 1/4/06, Ken
McArthur <[EMAIL PROTECTED]>
wrote:
Hi,
All
my pages start with <[EMAIL PROTECTED] pageEncoding="utf-8" contentType="text/html;
charset=utf-8" %> and have <meta http-equiv="content-type"
content="text/html; charset=utf-8"> in the html head tag.
Output
from all database derived unicode characters look fine. However,
output from resource bundle is garbled. i.e. "Español" comes back as
"Español". File check on
resource properties file comes back returns UTF-8 Unicode English text, with
very long lines. Any ideas what I'm doing wrong or what more I need to
add?
Thanks, Ken
|
- Re: utf-8 from resource bundle? Alin Dosoniu
-