-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to enter data in Thai language in wc3270 emulator #70
Comments
Hey @FWDQK , I was able to locate the root cause of your problem. In this block of code in x3270.py the string that is sent to wc3270 is encoded in unicode_escape
If I replace I am not quite sure what to do about this one. |
Ok. |
Hi @robinmatz , |
as for now, as an alternative to Here is a small example, I tried with the pub400.com host: *** Settings ***
Library Mainframe3270/
*** Test Cases ***
Bug
${extra_args}= Create List -utf8 -codepage thai
Open Connection pub400.com extra_args=${extra_args}
Wait Field Detected
Execute Command String(พยัญชนะ)
Take Screenshot
Sleep 5 s
[Teardown] Close Connection |
|
|
Hey there, terriblly sorry, but I really don't know the solution to this issue. @samuelpcabral , can you think of anything? In any case, keep in mind Robot -Framework-Mainframe3270-Library is basically proxying x3270 commands to a shell process. Therefore, I highly suggest you try to find the appropriate x3270 Actions on in their official wiki: https://x3270.miraheze.org/wiki/Main_Page This advice also goes for the other issue you raised. |
Hello @FWDQK as you can see in the main file of the library "py3270.py" there is a comment in the beggining:
So.. all of the commands are using encode or decode with utf-8, and are probably overwriting the connection settings. I already thought that this would cause a problem on a mainframe that doesn't work in utf-8, but it needs to be tested... unfortunately at the moment I don't have time for such a big change.. if you know how to program in python and get a solution, we will be more than happy to receive a merge request. |
Hi @samuelpcabral , |
@FWDQK You need to search in the two main files: x3270.py and py3270.py all occurrences of hardcoded "utf-8". there are two in the file x3270.py and sixteen in the file py3270.py To work correctly utf-8 must remain the default encoder, and to change it it would have to be an argument in the keyword "Open Connection" And unfortunately I don't have access to a mainframe in a different encoding to test this. |
Ok. |
We have a lot of tests in a public mainframe.. you just need to run this one: atest/mainframe.robot or when do a merge request the github actions will run all the tests. |
Hi, |
Hello @FWDQK any update about this one? |
Let me share my experience from this point. For someone facing the same prob. Initially, I experienced the same thing as @FWDQK did. But now this is working for me. Let me share my finding. I've tried executing the command I installed the "font" to the machine running x3270. then May be a simple solution can be creating a new keyword name "Write Unicode" which is calling |
Hi Team,
We need to enter values in Thai in wc3270 emulator.
Tried using charset and utf8, but same did not worked.
Please help to suggest how we can achieve this.
The text was updated successfully, but these errors were encountered: