Open hzafar opened 4 years ago
I can't seem to reproduce the problem,
The referenced portion has been sent as Grande Allée\u0021 Un homme\u0021
. \u0021 is UTF-8 to exclamation marks (!), I believe.
Environment URL: dev-cwrc-writer.cwrc.ca (also test at cwrc-writer.cwrc.ca and my localhost environment) Browser Name: Chrome Operating System: macOS Attachements: https://app.zenhub.com/files/82123127/94457327-0429-4dd0-9ed4-6b1a4ebe8e35/download
Wait. It might be a browser-specific problem.
Environment URL: dev-cwrc-writer.cwrc.ca Browser Name: Firefox and Safari Operating System: macOS
Attachments: https://app.zenhub.com/files/82123127/179f03e5-ee5b-4c72-891b-08536674a253/download https://app.zenhub.com/files/82123127/edf89e6a-3f5f-487d-b342-82ee7fde9b38/download
FYI,
if on step 3:
Environment URL: dev-cwrc-writer.cwrc.ca Browser Name: Firefox Operating System: macOS
Attachments: https://app.zenhub.com/files/82123127/578dd945-b6a0-48b5-8b69-a835b7727f1f/download
@hzafar , can you please review and reply?
@lucaju @ilovan sounds like this might have been a one-off issue when I was testing, then :). If we see the error on the nerve server again, I'll revisit, but I'm okay with closing this for now?
CWRC-Writer might be converting special characters (such as accents) to UTF-16 encoding within a UTF-8 document when sending a request to nerve.
Expected Behaviour
The document sent to nerve should match the encoding of the request.
Current Behaviour
This can be reproduced using the 'Sample TEI Poem' example document, which contains the string
Grande Allée! Un homme!
. When theRun
button is clicked under the NERVE tab, in the request that is generated this is converted toGrande All\xe9e\041 Un homme\041
. This is UTF-16 encoding, but the encoding of the document sent by the request is marked as UTF-8. (Full request is attached to this ticket.)Steps to Reproduce
Your Environment
URL: dev-cwrc-writer.cwrc.ca/
Browser Name: Firefox
Operating System: Ubuntu
Attachements: nerve_request.txt
cc: @ilovan