Page 1 of 1

having problems opening files which contain special characters.

Posted: Thu Jul 29, 2021 2:43 pm
by attentive
I am having problems opening files which contain special characters like é, è, ë, ê, à, á, ö, etc. The error message I get from OxygnXML iss:

Code: Select all

Cannot open the specified file: Got a character encoding exception.
 File encoding (UTF8) does not support all characters from the current file.
 To ignore these errors or to replace invalid characters follow the link below to change the "Encoding errors handling" option value from REPORT to IGNORE or REPLACE. 
The strange thing is: when I alter the file (by swapping the 'ó' for an 'o', for instance), I can import the files both in OxygenXML and in FontoXML.Afterwards I can correct them again and save the file. But I don't see a difference between the original file and the altered file.

This is the original file (special character in bold)

Code: Select all

     <p id="id-9f3a1788-a751-4f48-ed9c-9e19447ad3b0">Ze is zó zenuwachtig, dat ze bijna aan de ... moet .</p>
And this is the saved corrected file (from FontoXML, in this case - just to show the added instructions):

Code: Select all

<p id="id-9f3a1788-a751-4f48-ed9c-9e19447ad3b0">Ze is
                        z<?fontoxml-change-addition-start author-id="erik.verhaar" change-id="6f6bb382-3d43-4c5b-b35f-f857d729cf22" timestamp="1627473671530"?>ó<?fontoxml-change-addition-end change-id="6f6bb382-3d43-4c5b-b35f-f857d729cf22"?><?fontoxml-change-deletion author-id="erik.verhaar" change-id="0296c77c-863b-421f-bf5c-c0901c7a2751" text="ó" timestamp="1627473669483"?>
                        zenuwachtig, dat ze bijna aan de ... moet .</p>
What is the difference between the original ó and the corrected one? And how can I change my original files so they can be imported in OxygenXML?

Thanks!!

Re: having problems opening files which contain special characters.

Posted: Fri Jul 30, 2021 6:33 am
by Radu
Hi,

I answered you on stack overflow: https://stackoverflow.com/questions/685 ... characters

Regards,
Radu