Skip to content
⌘ NSIS Forum Archive

LangString with characters having diacritical marks

6 posts

pauljlucas#

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#
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#
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#
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
jiake#
I tested your string using LangString 1033 and it was displayed well on my system: