• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Eclips, .string files, and default encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Eclips, .string files, and default encoding
      • From: Chuck Hill <email@hidden>
    • Re: Eclips, .string files, and default encoding
      • From: "Daniele Corti" <email@hidden>
  • Prev by Date: Re: WOBuilder in the future of WO?
  • Next by Date: ERX MARKER/Fix Classpath
  • Previous by thread: Re: Newbie question about passing arguments into an WO app
  • Next by thread: Re: Eclips, .string files, and default encoding
  • Index(es):
    • Date
    • Thread