Eclips, .string files, and default encoding
Eclips, .string files, and default encoding
- Subject: Eclips, .string files, and default encoding
- From: François Reboursier <email@hidden>
- Date: Tue, 23 Jan 2007 10:35:28 +0100
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden