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
Bug when submitting answers with non-latin characters when using XMLRPC #967
Comments
I just ran into a similar problem with a different feature which used XMLRPC. If I have a problem using After a short delay, the browser opens a popup with the text:
and the Apache error.log file get lines like:
Below is a sample PG file (cut down to be relatively small) file which triggers this "new" problem on the current WeBWorK 2.15 pre-release branch:
By replacing the Hebrew letters "אבג" with "ABC" the error will be bypassed. |
I suspect the problem is really occurring in the
Based on what is shown for "AnswerGroupInfo" it seems that in the example file above the "AnswerHints" post-filter apparently installs something containing the Unicode message string in the |
I seem to have found a very small patch to The patch replaces line 55 of
with the following replacement line:
It is possible that after this change, the manual encoding to base64 after UTF-8 for 3 specific values in The patch above is based on several posts/pages on the internet about problems with
|
@mgage @heiderich - Can you see if you can hit the same issues above before patching |
Hello, I tried the above fix for line 55 in Lite.pm, it did nothing for me. Can anyone help? |
The XMLRPC::Lite issue is only when Unicode characters are making problems. There are several other causes of problems with the library browser.
Note: It would be faster to try the code in #1002 which loads prepared OPL tables than to really run OPL-update. |
Hello again, $server_root_url = 'http://what my url actuially is.ie/'; Just wanted to post the comment in case anyone else happens upon this ( as you can tell I know zero about network stuff) |
This is resolved with the removal of XMLRPC! |
#956 added support for rendering UTF-8 problems via xmlrpc, in particular changes to
clients/sendXMLRPC.pl
andlib/WebworkClient.pm
and the formats in the `lib/WebworkClient/' directory.However, if an answer (or the value of any form field) includes non-latin1 characters, things break.
Some ideas of what may be causing the problem appear in the comments to #956 but finding the root cause and fixing it remains to be done.
The same issue forced leaving the values of the 3 buttons (submit, preview, show correct answers) in English.
The text was updated successfully, but these errors were encountered: