UTF-8 Encoding
UTF-8 Encoding
- Subject: UTF-8 Encoding
- From: Aleksey Novicov <email@hidden>
- Date: Mon, 1 Nov 2004 17:39:07 -0800
I have a localized WO app which uses UTF-8 to display pages in Korean
and English, with some of the displayed text stored in language
variants of Localizeable.strings. Using the following meta tag in the
html, everything works fine:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
However, this was insufficient for form data. In order to have form
data render correctly coming from a database, and to have that same
data stored correctly in UTF-8 in the database, I added the following:
public Application() {
super();
WOMessage.setDefaultEncoding("UTF8");
}
That solved the database encoding issue. However, the UTF-8 strings
that I am reading from Localizeable.strings using WOResourceManager are
now broken! They now are no longer being rendered correctly, whereas
they were fine before the default encoding was set. Is this a bug in
WOResourceManager? Is the only remedy to use String(byte[], charset)
with strings read in by WOResourceManager?
Aleksey Novicov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden