having problems opening files which contain special characters.

attentive
Posts: 1
Joined: Tue Aug 28, 2018 11:21 am

having problems opening files which contain special characters.

Post by attentive » Thu Jul 29, 2021 2:43 pm

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!!

Radu
Posts: 7579
Joined: Fri Jul 09, 2004 5:18 pm

Re: having problems opening files which contain special characters.

Post by Radu » Fri Jul 30, 2021 6:33 am

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply