Inserting a copyright / registered symbol in the installer using Wix

eddie picture eddie · Jun 17, 2012 · Viewed 21.8k times · Source

I want to know if one a particular dialog i want to insert a copyright symbol , how would i do that i insert the symbol in th text options in the xml file howevr it results in an error while compiling the .wxs file.

Thanks

Answer

Alexey Ivanov picture Alexey Ivanov · Jun 17, 2012

You have to make sure you save the WiX XML in UTF-8 encoding. The easiest way is to open the XML in Notepad, click File and then click Save as. Select UTF-8 in the Encoding list. And overwrite your current XML file.

Another way is use character codes: © for copyright and ® for registred symbols.


The thing is the regular English letters, or ASCII, are valid UTF-8 characters as they fit into 7-bits. The copyright and registred symbols are not valid characters because in UTF-8 they have to be encoded as two bytes rather than one.