Tidy & Special Characters

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
PARoss
Posts: 43
Joined: Tue Aug 15, 2006 10:27 pm

Tidy & Special Characters

Post by PARoss »

Karlis,

What do I need to check or uncheck to stop Tidy from changing my special characters.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <title></title>
</head>

<body>
–
</body>

</html>
becomes

&# 8 2 1 1 ;

Phil
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Expand the HTML, XHTML, XML options, and uncheck numeric entities.
User avatar
PARoss
Posts: 43
Joined: Tue Aug 15, 2006 10:27 pm

Post by PARoss »

Numeric entities are unchecked, and it still converts special characters. What else can I do?

Phil
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Are you editing the 'default' Tidy Task? (the one that gets executed when you simply click the button)

If you want to .zip and email me tidy.dat, I'll have a check. It might be another setting its running.

Tidy.dat is found in C:\Documents and Settings\username\Application Data\Blumentals\WeBuilder\settings

Email it to blu @ chrisjlocke . co . uk
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Yes, with Tidy it is not one setting but many setting combination (usually input and output encoding settings have a great influence) that may cause it behave strangely.
Karlis Blumentals
Blumentals Software
www.blumentals.net
tonyd
Posts: 8
Joined: Mon Oct 15, 2007 12:24 pm
Location: England
Contact:

Stopping HTML Tidy from converting special characters

Post by tonyd »

Having recently purchased Rapid PHP 2007 I was having trouble with the entities » (used in all my menus) and © being converted to their ascii character representation by the HTML Tidy actions that write back to the file.

I played around with the various HTML Tidy configuration options and this is what worked for me, leaving these entities unchanged in the Indent HTML Tags and Validate and Fix HTML tidy options:

1. make sure numeric entities is unchecked in the HTML, XHTML, XML options.

2. in the Character Encoding options, tick ascii-chars and set char-encoding to win1252 (BTW, I am running on XP).
Post Reply