tria Posted February 25, 2012 Share Posted February 25, 2012 (edited) Hello, I am trying to query a service (with InetGet function) and pass a query parameter (after the ? in url), and this param is Arabic text. When I execute the script, it runs fine, but the result or response is not correct (due to Arabic not being passed as it should?). I tried with/without escaping, I also tried reading the string from utf-8 file, and saving the script in utf-8, without any luck. When I copy the URL (with the Arabic param) used in the script and paste it in Firefox, it works fine with the correct response, so I am pretty sure it is an issue related to either AutoIt generally or GetInet specifically. Or, maybe I am missing something. Would appreciate any help. Edit: Just to be clear, if I try the same service with English text instead, the response is correct. It is not a problem with the service, rather a problem when using Arabic text with InetGet for a reason that is beyound me. Edited February 25, 2012 by tria Link to comment Share on other sites More sharing options...
tria Posted February 25, 2012 Author Share Posted February 25, 2012 Okay, having tested the same request with IE, it appears to me that IE have the same problem (only when I use Arabic). Could it be that InetGet is using IE internally to do the request/response. If so, would there be any other way around this? Thanks Link to comment Share on other sites More sharing options...
KaFu Posted February 26, 2012 Share Posted February 26, 2012 Maybe this from ProgAndy works for you? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
tria Posted February 26, 2012 Author Share Posted February 26, 2012 Yes. I already use the encode function which is provided by ProgAndy. This is not the problem. I managed to solve the problem. It appears that I need to se additional parameter in the URL query that notify the service that the request is coming from IE based browser (to deal with the way UTF-8 is encoded). So, the solution is not releated to AutoIt, rather to IE and the service. This has been fixed. Thank you. Link to comment Share on other sites More sharing options...
KaFu Posted February 26, 2012 Share Posted February 26, 2012 Good to hear ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
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