Hotstrings suddenly not working for special characters

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
RxMigs
Posts: 3
Joined: 13 Apr 2019, 23:11

Hotstrings suddenly not working for special characters

13 Apr 2019, 23:30

Is it just me, or is this a bug? I recently installed version 1.1.30.03 on two different PCs, and in both installations, my hotstrings all changed, especially if they involve characters that are neither letters nor integers:

Code: Select all

Hotstring         :*?:1/2=::½
Expected result   ½
Actual result     ½

Hotstring         :*?:sqrt=::√
Expected result   √
Actual result     √

Hotstring         :*:php=::₱
Expected result   ₱
Actual result     ₱
These hotstrings were working fine for over a year.

Any feedback welcome.
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: Hotstrings suddenly not working for special characters

14 Apr 2019, 00:10

They are working fine here on v1.1.30.03 Unicode.
Did you by accident install the ANSI version?

Your script also needs to be saved in UTF-8 with BOM format (but if the scripts worked before, this shouldn't have changed by itself).
RxMigs
Posts: 3
Joined: 13 Apr 2019, 23:11

Re: Hotstrings suddenly not working for special characters

14 Apr 2019, 00:31

Thanks @gregster! That worked like a charm.

For anybody else on the same boat:
On Notepad++, I converted my AHK file to UTF-8-BOM.
No need to save, but had to reload the script.
This might have happened because I installed AHK into a brand new PC.
Its encoding defaults might be different from those in my old PC.
@gregster
DevinC
Posts: 10
Joined: 01 Sep 2016, 15:11

Re: Hotstrings suddenly not working for special characters

08 Oct 2019, 10:42

Thanks that works.
RxMigs wrote:
14 Apr 2019, 00:31
Thanks @gregster! That worked like a charm.

For anybody else on the same boat:
On Notepad++, I converted my AHK file to UTF-8-BOM.
No need to save, but had to reload the script.
This might have happened because I installed AHK into a brand new PC.
Its encoding defaults might be different from those in my old PC.
@gregster

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 184 guests