Unicode symbol in Gui text

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
kdaube
Posts: 86
Joined: 02 Nov 2015, 03:11

Unicode symbol in Gui text

05 Oct 2018, 05:37

I want to insert a unicode symbol (➔ U+2794 or → U+2192) into the text on a GUI. In my editor I can see the symbol:

Code: Select all

info := "something ➔ something else"
...
Gui, Add, Text,   x010 y385 w500 h035 , %info%
In the display (Windows 7 x64) I see
Image

In the edit field above this text I can enter this special character. It is handled correctly (display, save to file etc.)
The system font is Segoe UI (which does not contain this character, but the second one, which is also not handled correcty).

What's wrong with my GUI command?

Thank You for Your ideas.
Klaus
Klaus Daube, Zürich, CH
pramach
Posts: 54
Joined: 24 Jan 2018, 08:20

Re: Unicode symbol in Gui text

05 Oct 2018, 07:15

Which of the AHK versions have you installed ? The Unicode one ?
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Unicode symbol in Gui text

05 Oct 2018, 07:38

Try saving the script as UTF-8 with a BOM.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
kdaube
Posts: 86
Joined: 02 Nov 2015, 03:11

Re: Unicode symbol in Gui text

05 Oct 2018, 07:45

Thanks, jeeswg

That did the trick!

For data files I always look on this property - but here I forgot.
It needs to go into my flesh to always set BOM.

Thank You again,
Klaus
Klaus Daube, Zürich, CH

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Google [Bot], macromint, peter_ahk and 332 guests