Old 8th January 2021, 09:46   #1
Anders Hydén
Junior Member
 
Join Date: Jan 2021
Posts: 10
Swedish charcters in messages

HI,
I have succeded in installing the Swedish texts for the insatallation views.
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Swedish.nlf"

But in the special messages, that I self wright, the special charaters are not converted.

How do I do this?
Anders Hydén is offline   Reply With Quote
Old 8th January 2021, 10:45   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
Where are you writing the strings? Are you building a Unicode installer?

You ideally should encode your .nsi/nsh files as Utf8 with a BOM or as Utf16.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 8th January 2021, 13:16   #3
Anders Hydén
Junior Member
 
Join Date: Jan 2021
Posts: 10
I am learning by using the Examples1 and -2.
Just palying around, trying to understand what happens when.
Anders Hydén is offline   Reply With Quote
Old 12th January 2021, 13:31   #4
Anders Hydén
Junior Member
 
Join Date: Jan 2021
Posts: 10
Swedish charcters in sectionnames

Hi,
I am still asking for som help on how to get the special Swedish characters (ÅÄÖ and åäö) in messages and in sectionnames.



[IMG]C:\UTV\DF191\val.png[/IMG]
Anders Hydén is offline   Reply With Quote
Old 12th January 2021, 14:20   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
Quote:
Originally Posted by Anders Hydén View Post
Hi,
I am still asking for som help
I still don't know if you are saving your .nsi file as Unicode with a BOM.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th January 2021, 14:29   #6
Anders Hydén
Junior Member
 
Join Date: Jan 2021
Posts: 10
Anders,
I do not understand what you mean with BOM.
I edit my NSI-fil in Notepad++
Anders Hydén is offline   Reply With Quote
Old 12th January 2021, 15:03   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
https://en.m.wikipedia.org/wiki/Byte_order_mark

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th January 2021, 15:30   #8
Anders Hydén
Junior Member
 
Join Date: Jan 2021
Posts: 10
Thanks for helping!
I now work with UTF-8-BOM and get the right text.
Anders Hydén is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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