Reputation: 1597
In my html source code I have some special symbols like the copyright one <meta content="© Copyright... />
For some text editors these are shown correctly as above, but on VS Code I see it as � and after I save the file, the symbol will be shown as � and � on other editors.
If I explicitly paste the © on VS Code and save it, then on another text editor it will be saved as ©.
How can I solve this? What should I do?
Upvotes: 5
Views: 15312
Reputation: 329
Same problem here - solved by setting "files.encoding": "windows1252"
for this workspace.
Upvotes: 2
Reputation: 1597
I've found out that the files were saved in ISO-8859-1 encoding, that caused to see like that the symbols even If I had UTF8 set as my default.
Upvotes: 1
Reputation: 128796
Ensure your file's encoding is set to something which can accurately display the symbol (like UTF-8):
This can be found in the bottom right of the program in the status bar.
See their documentation on File Encoding Support.
Upvotes: 2
Reputation: 858
Try use HTML codes for special symbols: http://www.ascii.cl/htmlcodes.htm
Upvotes: 0