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 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