Archive: search&replace on UTF-8 functional ?


search&replace on UTF-8 functional ?
http://nsis.sourceforge.net/archive/...nstances=0,311
http://nsis.sourceforge.net/archive/...nstances=0,311

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!


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)


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.


Ok, thanks Joost for correcting me.