Hi folks,

I'm in the processing of making my app multi-lingual, using 'WOApplication.application().resourceManager().stringForKey()' . My .strings files are encoded in UTF-8, so are my .java files and my Eclipse project (alt-enter on the root of my project: UTF-8 is everywhere). I've triple-checked this with BBEdit. But when using strings returned by stringForKey(), an extra garbage character is inserted before each accented or special character: my .strings file seem not to be read as UTF-8.

When running the following piece of code:
OutputStreamWriter out = new OutputStreamWriter(new ByteArrayOutputStream());
System.out.println("DEFAULT ENCODING: "+ out.getEncoding());
I see that my default encoding is 'MacRoman'. Is there a way to change this via a javac setting in Eclipse (and how ? ), or in code ?

Regards,
François


--
François Reboursier - Software Engineer - Mauna Kea Technologies

This message and any attached documents are CONFIDENTIAL and intended only for the use of the intended recipient. Ce message et tous les documents attachés sont CONFIDENTIELS et à la seule attention du destinataire pour lequel ils ont été écrits.




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to