I have some questions on Encoding UTF8 in AHK Studio.
I use UTF-8 in most of my files (not limited to .ahk files, including .txt, .py, etc), and I don't like other encoding methods (eg: ANSI),
I don't like them because when I open a non-UTF-8 file in other software, sometimes the characters became gibberish.
1.
Question::
When we are dealing with special characters in .ahk files in Windows, do we have to encode .ahk files in UTF-8 BOM instead of UTF-8?
(This is what I am currently doing -- making .ahk into UTF-8 BOM if I have special characters in it. )
(PS: I was really bothering by this for a long time, and I heard many times that the BOM thing in Windows is really annoying, but I just could't get rid of it. )
2.
Question::
Can I get rid of the BOM in UTF-8 in AHK Studio? If yes, is it bad if I get rid of it?
Situation1::
When I created an test.ahk file in Notepad++, put some special characters (eg: α), save as UTF-8.
Then I open it in AHK Studio, the characters become gibberish.
When I created an test.ahk file in Notepad++, put some special characters (eg: α), save as UTF-8 BOM.
Then I open it in AHK Studio, everything was fine.
Situation2::
When I enabled the force UTF-8, and edited test.ahk in AHK Studio with special characters, and saved it. It would be saved in UTF-8 BOM, not UTF-8.
When I disabled the force UTF-8, and edited test.ahk in AHK Studio with special characters, and saved it. It would be saved in some Encoding methods.
- Home Board index AutoHotkey (v2, current version) Editors AHK Studio
- Search
-
- It is currently 13 May 2024, 05:29
- All times are UTC-05:00
How to use encoding UTF8 instead of UTF-8 BOM in AHK Studio
Editor for AutoHotkey written completely in AutoHotkey.
Moderator: maestrith
Jump to
- AutoHotkey Foundation
- About This Community
- Forum Issues
- AutoHotkey (v2, current version)
- Ask for Help (v2)
- Gaming
- Scripts and Functions (v2)
- Gaming
- Tutorials (v2)
- Tips and Tricks
- Wish List
- Suggestions on Documentation Improvements
- Bug Reports
- AutoHotkey Development
- AutoHotkey_H
- Ask for Help
- Development
- Editors
- Adventure IDE
- Old Topics
- AHK Studio
- Notepad++
- Pulovers Macro Creator
- SciTE4AutoHotkey
- Visual Studio Code
- Announcements
- General Discussion
- AutoHotkey (v1.1 and older)
- Ask for Help (v1)
- Gaming Help (v1)
- Scripts and Functions (v1)
- Gaming Scripts (v1)
- Tutorials (v1)
- Tips and Tricks (v1)
- General
- Other Utilities & Resources
- Other Programming Languages
- C/C++
- ASM
- C#
- KeySharp
- Off-topic Discussion
- RPA
- Other languages
- Looking for Volunteers in other languages
- Deutsch (German)
- Ich brauche Hilfe
- Spiele
- Skripte und Funktionen
- Tutorials
- Tooltime
- Allgemeines
- 中文 (Chinese)
- 请求帮助
- 脚本函数
- 教程资料
- 相关工具
- 其他
- Español (Spanish)
- Pedir Ayuda
- Automatización de Juegos
- Scripts y Funciones
- Tutoriales
- Otras Utilidades y Recursos
- General
- Русский (Russian)
- Помощь
- Скрипты для Игр
- Скрипты и библиотеки
- Статьи и руководства
- Прочие ресурсы и ПО.
- Свободное общение
- Français (French)
- J'ai besoin d'aide
- Scripts et Fonctions
- Tutoriels
- Autres Utilitaires et Ressources
- Hors Sujet
- Português (Portuguese)
- Ajuda e Suporte Geral
- Scripts e Funções
- Tutoriais
- Outras Ferramentas e Recursos
- Outros Assuntos
- 한국어 (Korean)
Who is online
Users browsing this forum: No registered users and 5 guests