Old 16th November 2010, 21:02   #1
pauljlucas
Junior Member
 
Join Date: Nov 2009
Location: San Francisco
Posts: 8
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:

code:
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).
pauljlucas is offline   Reply With Quote
Old 16th November 2010, 22:06   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 18th November 2010, 02:24   #3
pauljlucas
Junior Member
 
Join Date: Nov 2009
Location: San Francisco
Posts: 8
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.
pauljlucas is offline   Reply With Quote
Old 18th November 2010, 07:05   #4
gringoloco023
Member
 
Join Date: Nov 2009
Posts: 52
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
gringoloco023 is offline   Reply With Quote
Old 18th November 2010, 20:11   #5
pauljlucas
Junior Member
 
Join Date: Nov 2009
Location: San Francisco
Posts: 8
I had the 0xFC. Really. Any idea how it got converted?
pauljlucas is offline   Reply With Quote
Old 22nd November 2010, 01:33   #6
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
I tested your string using LangString 1033 and it was displayed well on my system:
Attached Thumbnails
Click image for larger version

Name:	welcome.jpg
Views:	483
Size:	70.8 KB
ID:	47934  
jiake is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
langstring

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump