 |
 |
bad accentuated characters in sheets ?
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: France
Status:
Offline
|
|
i'm making sheets using NSBeginAlertSheet().
i use NSLocalizedString() to translate and file a found correclty since sentences are transalted but
the string displayed in french, german etc... have blanks in place of accentuated char (é,è,à,ë,ü etc...) !
ex "I liked OS X" = "J'ai aimé OS X" would appear as "J'ai aim OS X" (note 'é' as disapeared...)
is it a known bug ? i've tested in english to, same problem
how can i fix this ? (reading french without accent is a nightmare)
damn OS X, internationalized
thnaks
(Last edited by altimac; Nov 20, 2002 at 01:43 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
Do you have French strings in the source code? (That is, does your source look like NSLocalizedString(@"J'ai aimé OS X")?) If that's the case, your problem could be with compiler tools not handling non-ASCII characters. You might be able to solve it by using UTF-8 encoding for your source code files, or you could use dummy strings as the keys for NSLocalizedString().
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: France
Status:
Offline
|
|
no i don"t have French string in my source code. All English, then localized...
Stranger, i found that :
a German send me a translated Localizable.string like this :
"An error prevented preferences saving !" = "Ein Fehler trat w√§hrend des Sicherns auf!";
or
"Please check" = "Bitte prüfen"
look at this strange hyeroglyph (!), THIS WORKS in the sheets !, i mean the symbols are displayed as "ë, ü, à" correctly !
i don't understand how did this guy achieve th have this symbols...
i'm lost 
|
|
|
| |
|
|
|
 |
|
 |
|
Banned
Join Date: Sep 2000
Location: Fightclub
Status:
Offline
|
|
I have exactly the same problem with tooltips that use NSLocalizedString... the characters with accents are missing...
How can this be fixed?
|
|
|
| |
|
|
|
 |
|
 |
|
Banned
Join Date: Sep 2000
Location: Fightclub
Status:
Offline
|
|
Now I have the answer...
Although you can type the accented characters in ProjectBuilder (or TextEdit), the Localized.strings file is not saved as full UTF-8 Unicode....
Save it as Unicode in BBEdit, or similar, and you'll find the problem goes away...
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status:
Offline
|
|
Originally posted by eno:
Now I have the answer...
Although you can type the accented characters in ProjectBuilder (or TextEdit), the Localized.strings file is not saved as full UTF-8 Unicode....
Save it as Unicode in BBEdit, or similar, and you'll find the problem goes away...
Isn't there a way to set your source file at UTF-8 in Project Builder? I'm pretty sure there is, but I'm stuck at work on a PC now so I can't check.
|
|
|
| |
|
|
|
 |
|
 |
|
Banned
Join Date: Sep 2000
Location: Fightclub
Status:
Offline
|
|
Originally posted by hayesk:
Isn't there a way to set your source file at UTF-8 in Project Builder? I'm pretty sure there is, but I'm stuck at work on a PC now so I can't check.
i would've thought so... but I couldn't see it at a cursory glance.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Originally posted by eno:
i would've thought so... but I couldn't see it at a cursory glance.
I see it in Format -> File Encodings -> UTF-8.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: May 2001
Location: France
Status:
Offline
|
|
thanks guys !
it works now, it is a lot nicer !
is it clearly written in apple docs ? should make a bug/feedback report ?
many people seems confused... the better would be to automatically set UTF8 to the "Localized.string" added by "Add Localized Variant" button...
i'm happy 
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|