• 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
Re: French characters butchered in deployed app, works fine in Eclipse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: French characters butchered in deployed app, works fine in Eclipse


  • Subject: Re: French characters butchered in deployed app, works fine in Eclipse
  • From: Jim Roepcke <email@hidden>
  • Date: Fri, 4 Sep 2009 03:14:30 -0700

Solved... the solution is: UTF-16, No BOM for strings files.

Q wrote:

> If it works fine in eclipse then it sounds like the app is
> doing all the right things. Are you testing in eclipse using
> direct connect mode?

I normally test using Apache, but I tried Direct Connect to make sure
it wasn't Apache messing up the characters, and it happened either
way.

> If you direct connect to the instance running on the server does
> it still happen?

Yes.

> Does your apache config have a 'AddDefaultCharset' directive?

No.

...

Based on suggestions in this thread I converted my
French.lproj/Localizable.strings and English.lproj/Localizable.strings
to UTF-16, No BOM (using BBEdit). That fixed the problem with the
accented characters!

David Holt pointed me to a message from Pascal saying the files have
to be UTF-16, Little Endian, No BOM. When I tried that, errors occur
reading the strings file (in line 1, column 1), regardless of whether
the app is launched from Eclipse or otherwise.

I find two things very interesting/strange:

1) It works when the strings files are UTF-8 if you run the app in
Eclipse. What's different? It would be nice to use UTF-8, No BOM, so
it would be nice to know why that works fine in Eclipse but not
outside of Eclipse.

2) It doesn't work if it's UTF-16 LE, No BOM, which Pascal suggested
was necessary. Pascal, can you confirm that LE works or doesn't work
for you?

Thanks for your help everyone,

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

References: 
 >French characters butchered in deployed app, works fine in Eclipse (From: Jim Roepcke <email@hidden>)

  • Prev by Date: Re: putting in a WOBorser more than one colum
  • Next by Date: Combining EXTJS with WebObjects.
  • Previous by thread: Re: French characters butchered in deployed app, works fine in Eclipse
  • Next by thread: Re: terminate() not being called with servlet deployment
  • Index(es):
    • Date
    • Thread