I'm trying to download some documents via SAP GUI using Python, but I get them with a wrong encoding.
When I tried UTF8 manually - i got the wrong encoding. Changed Codepage settings in connection options to ANSI encoding and was glad to see fine results working manually.
But with the same SAP connection SAP GUI Scripting proceeds getting same wrong results, as it was with UTF8. Encoding errors come only when icon "SAP GUI Scripting: Script is running" is on.
As I understand, on Windows server SAP GUI always uses utf8 with Scripting, ignoring my connection settings.
In SAP GUI Scripting API I found SaveAsUnicode
session property, which is True by default: session.saveAsUnicode = 0
makes it False, but it does not help. All other methods, connected with code-page are read-only.
So how can I force SAP GUI use different encoding, use my settings downloading files?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…