Welcome Guest Search | Active Topics | Sign In | Register

html dash not converting to same character in pdf Options
Becky
Posted: Wednesday, June 13, 2012 5:10:27 PM
Rank: Advanced Member
Groups: Member

Joined: 5/24/2012
Posts: 45
Hi,
I have an html document which I allow the user to view via a WYSIWYG editor. Through the editor, and in the html, everything looks fine. But once I run the conversion, the pdf document contains a special character instead of the dash shown in the html. Upon careful observation I realized I actually have two different dash characters in my html. Both show up as dashes in the html and the WYSIWYG editor. One shows up fine in the pdf, the other one shows up as the special character, ‑

The html which shows up the way I want is:
Code: HTML/ASPX
<li>Exposes, develops, and mounts full mouth X-rays.</li>


pdf version is: Exposes, develops, and mounts full mouth x-rays.

The html which shows up with a special character in it is:
Code: HTML/ASPX
<li>Changes all chemical solutions, i.e., disinfectant soaks and sprays, sterilents, ultrasonic, presoak and x-ray processing.</li>


pdf version is: Changes all chemical solutions, i.e., disinfectant
soaks and sprays, sterilents, ultrasonic, presoak and x‑ray processing.

Do you know of anything I can do to correct this problem?
Thanks,
Becky

Becky
Posted: Wednesday, June 13, 2012 6:41:53 PM
Rank: Advanced Member
Groups: Member

Joined: 5/24/2012
Posts: 45
OK, nevermind. I'm taking the bad character out of the html before trying to convert. Sorry for the post.
Becky
eo_support
Posted: Thursday, June 14, 2012 9:07:49 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Thanks for the update. This appears to be an encoding issue. Try to explicitly use UTF-8 encoding for the page and see if that helps.

Thanks!
Becky
Posted: Thursday, June 14, 2012 3:59:38 PM
Rank: Advanced Member
Groups: Member

Joined: 5/24/2012
Posts: 45
Thanks for the reply. I added
Code: HTML/ASPX
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

to my head tag and yes, the html converted perfectly to pdf.
Thanks!
Becky

P.S. your converter tool is now working perfectly when converting all my html documents into pdf. Thank you so much for all your help.
eo_support
Posted: Thursday, June 14, 2012 4:04:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Excellent. Glad that everything is working for you!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.