avmaksimov Posted March 18 Posted March 18 Don't understand how to include file with cyrrilic path. If I use UTF-8 BOM for file I see that Autoit can't include file with question mark in the path. I also tried to use ANSI (Win-1251 codepage) and add strings in SciTEUser.properties: code.page=65001 output.code.page=65001 but without success. I didn't find the answer neither in Internet neither this forum.
Developers Jos Posted March 18 Developers Posted March 18 I assume you are running this from SciTE? What is the exact console output you get ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
bogQ Posted March 18 Posted March 18 (edited) @Jos he is probably getting something similar to For #include "чц.au3" Edited March 18 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) Reveal hidden contents There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.
avmaksimov Posted March 18 Author Posted March 18 On 3/18/2025 at 7:40 AM, Jos said: I assume you are running this from SciTE? What is the exact console output you get ? Expand Yes. Via SciTE. @bogQwrote right. I see the same error.
Developers Jos Posted March 18 Developers Posted March 18 I can replicate this and will take a look later this week to see why this is happening. Strange this hasn't come up before, as I have fixed it for special Western Characters, but this doesn't seem to fix it for Cyrillic characters. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
avmaksimov Posted March 18 Author Posted March 18 On 3/18/2025 at 10:24 AM, Jos said: I can replicate this and will take a look later this week to see why this is happening. Strange this hasn't come up before, as I have fixed it for special Western Characters, but this doesn't seem to fix it for Cyrillic characters. Expand Thank you. I'll wait for your solutions. I faced with it on several computers. At my first computer I solved it many years ago but don't remember this solutions. May be some codepage for files and may be some scite or autoit settings.
Developers Solution Jos Posted March 19 Developers Solution Posted March 19 (edited) After I changed this setting to UTF8, things would work fine for your example filename: https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page#set-a-process-code-page-to-utf-8 Think that is the easiest way to get it working. PS: Is Windows own locale set to Win-1251 too? Edited March 19 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
avmaksimov Posted March 20 Author Posted March 20 On 3/19/2025 at 4:12 PM, Jos said: After I changed this setting to UTF8, things would work fine for your example filename: https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page#set-a-process-code-page-to-utf-8 Think that is the easiest way to get it working. PS: Is Windows own locale set to Win-1251 too? Expand I see the same error after setting this parameter and rebooting. Also I tried to use Ansi, UTF and UTF-BOM codepage for the main page but I see the same error. What code page right for the main and include files?
Developers Jos Posted March 20 Developers Posted March 20 (edited) AutoIt3Wrapper directives aren't doing anything for you as you run the Script directly with AutoIt3. You need the Full version of SciTE4AutoIt3 installed for those to work. ...but when running the script with AutoIt3.exe doesn't work, i doubt there is anything AutoIt3Wrapper is able to do. Edited March 20 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
avmaksimov Posted March 20 Author Posted March 20 Sorry. I've checked my script again and did some things with codepages. And now I see everything is ok. It's strange. I don't know what did help. I think UTF-8 in Region Settings. And BTW if you make an error in include file path that you'll see the strange error such as in the previous screenshot. But for the first time the path was good so I think UTF-8 settings helped. Thank you very much!
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