Page 1 of 1

How to prevent ASCII characters in web author view?

Posted: Thu Jul 08, 2021 2:39 pm
by ashok
We are trying to Oxygen Web Author in alfresco. we are using ditamap and dita files in this. While checkout the dita file in Oxygen web Author, it will convert the special character like non-breaking space , “Smart” Apostrophes (smart quotes) into  “ . we already having the UTF-8 Char Picker v23.0 plugin .
After checkout the document these junk characters getting added to the document. while doing the checkin these are additionally added into dita file.How to resolve this issue .?
image.png
image.png (132.63 KiB) Viewed 1348 times
XML :
<p class="- topic/p ">This Statement of Additional Information (“SAI”) is not a prospectus.</p>

Re: How to prevent ASCII characters in web author view?

Posted: Thu Jul 08, 2021 6:26 pm
by cristi_talau
Hello,

To troubleshoot this problem I need more information.

It would help if you could share the file at the following moments:
  • When you download it from Alfresco directly?
  • When you download it from Web Author user interface before you check it out?
  • When you download it from Web Author user interface after you check it out?
You can also use our technical support form to share these files.

Also, I noticed some green buttons on the toolbar. Are these buttons part of your customization? Are they used when performing the checkout? Can you try to reproduce the problem without your customizations?

To understand the information that Web Author and Alfresco exchange you can enable more verbose HTTP logging in Web Author [1].

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... tgc_1wq_2v

Re: How to prevent ASCII characters in web author view?

Posted: Tue Jul 13, 2021 2:39 pm
by ashok
cristi_talau wrote: Thu Jul 08, 2021 6:26 pm Hello,

To troubleshoot this problem I need more information.

It would help if you could share the file at the following moments:
  • When you download it from Alfresco directly?
  • When you download it from Web Author user interface before you check it out?
  • When you download it from Web Author user interface after you check it out?
You can also use our technical support form to share these files.

Also, I noticed some green buttons on the toolbar. Are these buttons part of your customization? Are they used when performing the checkout? Can you try to reproduce the problem without your customizations?

To understand the information that Web Author and Alfresco exchange you can enable more verbose HTTP logging in Web Author [1].

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... tgc_1wq_2v
hi
please find the sample in attachment for testing. While editing this dita we got ASCII character got replace for smart quotes and nbsp space area.
after enabling the Http logs we couldn't found the root cause .
sample.zip
(150.62 KiB) Downloaded 170 times
. How to resolve this issue?
sample.zip
(150.62 KiB) Downloaded 170 times
Ashok

Re: How to prevent ASCII characters in web author view?

Posted: Tue Jul 13, 2021 5:28 pm
by cristi_talau
Hello,

I could not reproduce the problem you mentioned. I used an Web Author installation with no customizations, uploaded the file you sent to an Alfresco server, opened it and checked it out. All the characters were intact. Moreover, the yellow banner for me contained the "Check out required" text. Can you use the "More" (triple dots menu) > "Report Problem" to send us a problem report with more details about your server?

This kind of problem happens when a custom plugin or tool reads the content of a file and does not specify the character encoding. Depending on the plugin you use setting the -Dfile.encoding=UTF-8 system property may fix the issue [1].

You can try to set this system property also for the JVM that runs the Alfresco server.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... perty.html