Skip to content
⌘ NSIS Forum Archive

search&replace on UTF-8 functional ?

4 posts

Brummelchen#

search&replace on UTF-8 functional ?




Are these functions functional on UTF-8 documents with "umlaute" (äöü ...) ?

the idea behind is that we have a pre-defined text with a username "\username\" and this needs to be replaced while installation. there's no other option!
deguix#
I think in UTF-8 a special character has the value of 3 characters (I'm not so professional on this so correct me if necessary).

To replace a special character with another special, you have to put in the "3 characters" form of this special character (seen by hex editors).

That's why it's not recommended to replace ASCII characters with UTF-8 characters and vice-versa. (sometimes can make the file corrupted or can make it show wrong characters)
Joost Verburg#
This character takes two bytes in UTF-8. If you don´t have any special characters in your script that should be in ASCII encoding you can edit your script with a UTF-8 editor.