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
Xmlrpc utf8 fix #1089
Xmlrpc utf8 fix #1089
Conversation
See: the html2xml part of the report at openwebwork/pg#443 which seems to be resolved by this change. The main change is to encode UTF-8 data which before it gets sent to XMLRPC and decode it on arrival. Problems which did not work over html2xml / XMLRPC before this change are now working, and no adverse issues have been seen in several weeks of use (over 8000 scores earned over html2xml using the LTI modifications) on a server running this code to get the html2xml system working with problems several of which did not load over html2xml without this patch.
(contains "<<<<<<< HEAD" etc.) and should not have been in the repo.
openwebwork/pg#443 provides a sample of the errors received before the fix. Below is a shortt PG file which triggers the issue before the fix:
Avoiding the use of Hebrew in the
|
1 similar comment
openwebwork/pg#443 provides a sample of the errors received before the fix. Below is a shortt PG file which triggers the issue before the fix:
Avoiding the use of Hebrew in the
|
Installing this PR removes the initial errors,
but I still get the following error on the example problem.
How should this be handled? |
Using |
I'm pretty sure |
I'm going to pull this request and then submit a patch for the file |
@dpvc in openwebwork/pg#443 (comment) suggested a very similar solution to the EquationCache.pm issue. Using MathJax instead of images mode avoids that issue, and as I was focused primarily on solving the XMLRPC issue, I did not get back to checking the EquationCache.pm fix. |
Code to solve problems XMLRPC had with UTF-8 in some places.
See: the
html2xml
part of the report at openwebwork/pg#443 which was resolved by this change.The main change is to encode UTF-8 data which before it gets sent to XMLRPC and decode it on arrival.
Problems which did not work over
html2xml
/ XMLRPC before this change are now working, and no adverse issues have been seen in several weeks of use (over 8000 scores earned overhtml2xml
using the LTI modifications) on a server running this code to get thehtml2xml
system working with problems several of which did not load overhtml2xml
without this patch.