Re: French characters butchered in deployed app, works fine in Eclipse
Re: French characters butchered in deployed app, works fine in Eclipse
- Subject: Re: French characters butchered in deployed app, works fine in Eclipse
- From: Henrique Prange <email@hidden>
- Date: Thu, 03 Sep 2009 17:46:21 -0300
Hi Jim,
I usually add the -Dfile.encoding=UTF-8 parameter when launching my
applications. This solved all my localization problems.
I also add a check condition when my application starts in case a forget
to add the parameter. :)
String encoding = System.getProperty("file.encoding");
if (!"UTF-8".equalsIgnoreCase(encoding)) {
throw new IllegalStateException(
"Cannot start the application with encoding " + encoding
+ ". The encoding MUST be UTF-8. "
+ "(Run the application with -Dfile.encoding=UTF-8 parameter)");
}
Cheers,
Henrique
Jim Roepcke wrote:
Hi all,
The Wonder app I'm working on is localized into English and French.
Everything works perfectly when the app is run from Eclipse.
However, if we build the app (on Mac OS X 10.5.8 or Mac OS X 10.6) and
run the build woa via the command line or Monitor (on Mac OS X Server
10.5.8 or Mac OS X 10.6), all French accented characters are garbled!
For example, instead of:
Sélectionnez une langue
we see:
Sélectionnez une langue
Our apps Properties files contain the following related to encodings
and localization:
er.extensions.ERXLocalizer.defaultLanguage=English
er.extensions.ERXLocalizer.availableLanguages=(English,French)
er.extensions.ERXApplication.DefaultEncoding=UTF-8
er.extensions.ERXApplication.DefaultMessageEncoding=UTF-8
Our apps link with ERJars, ERExtensions and JavaWOExtensions from Wonder.
It doesn't matter if French.lproj/Localizable.strings is in UTF-8 or
UTF-16 encoding, we have the same problem. It doesn't matter if the
request is through Apache or Direct Connect.
Other info...
WebObjects 5.4.3
Wonder -r 9705
WOLips 3.4.5924
Eclipse 3.4.1 (yes, we should upgrade to 3.4.2, I know)
Has anyone seen this behaviour before or have any idea what might be
causing this problem?
Thanks,
Jim
_______________________________________________
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
_______________________________________________
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