If I write my script with Sublime Text, and save as UTF-8, the hotstring will output some gabled text like 鈽�.
Code: Select all
If I then open this script with notepad, and save again, the issue will be fixed. The hotstring will correctly output ★.
But if I then open the script with Sublime Text again, it'll show the encoding has been changed to "UTF-8 with BOM". I don't know much about "UTF-8 with BOM", although it's supposed to be discouraged, I don't actually mind. But I'm just curious, is there something I should understand about this behavior?