Special Unicode character and encoding issue

Get help with using AutoHotkey and its commands and hotkeys
Arrivest
Posts: 14
Joined: 24 Nov 2017, 12:28

Special Unicode character and encoding issue

03 Mar 2018, 13:38

Suppose I have this hotstring in my script:

Code: Select all

::star::★
If I write my script with Sublime Text, and save as UTF-8, the hotstring will output some gabled text like 鈽�.
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?
User avatar
noname
Posts: 509
Joined: 19 Nov 2013, 09:15

Re: Special Unicode character and encoding issue

03 Mar 2018, 14:38

You can find an explanation here:

https://autohotkey.com/docs/FAQ.htm#nonascii
soundcloud.com/user-32706894

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot], Marcosa1020 and 148 guests