pauljlucas
16th November 2010 22:02 UTC
LangString with characters having diacritical marks
If I'm using LangString with German, how should I enter characters that have diacritical marks? For example, I if I want a ü (small letter 'u' with an umlaut), how do I enter it?
Doing this:
LangString LS_DesktopShortcutSecName ${LANG_GERMAN} "Verknüpfung auf dem Desktop"
where the ü has the byte value of 0xFC doesn't work. On the page in the generated installer, the umlauted ü displays ü (a capital letter 'A' with a tilde followed by a 1/4 fraction).
Afrow UK
16th November 2010 23:06 UTC
You must be pasting it as a Unicode character (2 bytes). Use something like Notepad 2 or Notepad++ (or some other converter) that allows you to convert between Unicode and ASCII.
Stu
pauljlucas
18th November 2010 03:24 UTC
No, I'm not pasting it as a Unicode character. I said the byte value of the ü is 0xFC (which is its ISO-8859-1 value). I did a hex dump of the file to ensure it really is only that single byte.
Aside from that, the ü character can not be represented in ASCII, so converting to ASCII is nonsensical.
gringoloco023
18th November 2010 08:05 UTC
Try using a different editor.
Afrow UK is right, but must have meant ANSI instead of ASCII .
I just tested it,
ANSI:
56 65 72 6B 6E FC 70 66 75 6E 67 ; Verknüpfung
UTF-8:
56 65 72 6B 6E C3 BC 70 66 75 6E 67 ; Verknüpfung
pauljlucas
18th November 2010 21:11 UTC
I had the 0xFC. Really. Any idea how it got converted?
jiake
22nd November 2010 02:33 UTC
I tested your string using LangString 1033 and it was displayed well on my system:
http://forums.winamp.com/attachment....chmentid=47934