简体   繁体   中英

Inserting a copyright / registered symbol in the installer using Wix

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

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.

Here is a solution:

  1. Copy the notepad++ file text say "index.html" into plain old notepad

  2. Close the notepad++ file.

  3. Re type the text where you want the Copyright symbol by holding down Fn+alt typing 0169 on the keypad

  4. Save the plain notepad file as (all Files) index.html to the folder your index.html file is in when asked to overwrite click yes.

  5. Now open the file using notepad++ and this file when saved after any other edits will not produce the accented A beside the copyright symbol ©

I do not know why the saved version in notepad++ works after "cleansing" in plain notepad but I have not had any other problems using the method to date.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM