Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP GUI Scripting API

0 Kudos

I'm a learner of python and referring to a python tutorial I'm trying to download documents via SAP GUI using Python, but I got them with the wrong encoding.

When I tried UTF8 - I got the wrong encoding. I changed Codepage settings in connection options to ANSI encoding and I was happy to see fine results working manually.

But with the same SAP connection SAP, GUI proceeds to get the same wrong results, as it was with UTF8. As I understand, on Windows server SAP GUI always uses utf8.

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 to use a different encoding?

1 REPLY 1

Former Member
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're new in asking questions here, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful), share screenshots of what you've seen/done, make sure you've applied the appropriate tags, and use a more descriptive subject line. The more details you provide, the more likely it is that members will be able to assist you. You should also make sure you're using all the appropriate tags, so the right experts can find your question.

Should you wish, you can revise your question now by selecting Actions, then Edit.

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS . By personalizing your profile with a photo of you, you encourage readers to respond.

Best regards,

Mariah

SAP Community moderator