magicboy11 Posted April 15, 2009 Posted April 15, 2009 Whenver I try to add Unicode characters in my script it automatically erases or doesnt recognize it By unicode char I mean: http://en.wikipedia.org/wiki/List_of_Unicode_charactersIs there any way to fix this?
Richard Robertson Posted April 15, 2009 Posted April 15, 2009 You aren't saving your file in unicode format.
KaFu Posted April 15, 2009 Posted April 15, 2009 Internally au uses unicode. For file operations add 128 to the mode parameter FileOpen ( "filename", mode ) "128 = Use Unicode UTF8 reading and writing mode. Reading does not override existing BOM" OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Richard Robertson Posted April 16, 2009 Posted April 16, 2009 The problem is that the user is probably putting unicode characters in the au3 file and not saving the file in unicode format. By default, many editors save to ASCII.
magicboy11 Posted April 16, 2009 Author Posted April 16, 2009 (edited) can you please clarify, i want to use these UNICODE characters....are you saying I have to insert something in script to allow it to accept UNICODE? Help please ^.^ how would I go about editing files in UNICODE format? Edited April 16, 2009 by magicboy11
KaFu Posted April 16, 2009 Posted April 16, 2009 (edited) Your Editor has to support editing/saving unicode characters. In Scite switch to "File => Encoding => UTF-8". In Wordpad "Save As Type = Unicode Text Document". Edited April 16, 2009 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now