Different editor, different effect charset?

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
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Different editor, different effect charset?

Post by FrankC »

Hi,

I am confused about the rendering of characters like é and ë. If I enter them like that in HTML-Kit in a file with charset iso-8859-1, they appear as such in the browser. But in a file created by WeBuilder I have to declare utf-8. In other words: the combination of HTML-Kit and utf-8 makes them render as strange characters, as does the combination WeBuilder and iso-8859-1. How is that possible? Doctype doesn't change matters. I am using v. 11.01.

R.,
Frank
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: Different editor, different effect charset?

Post by FrankC »

I did some more testing and came to a very remarkable conclusion: if WeBuilder has created or just changed a file, one can have the charset utf-8 content-type tag in the head, but still type special characters as one normally would in e-mails or Word. It is not necessary to type € for the € sign. And this effect stays, even if other editors (also Notepad, Notepad2 and Notepad++) change the file after WeBuilder and save it! While if the three Notepads create exactly the same file by themselves, one has to use the codes for the special characters -- until the file has been opened in WeBuilder and saved!

On the other hand, a page with

Code: Select all

<?php echo "This is the € sign." ?>
needs the iso-8895-1 charset for the € to display as €, rather than as a small square.

Is this a bug or intentional, and what would be the mechanism behind it?
Post Reply