You are here:  » Special characters (French for example)

Support Forum



Special characters (French for example)

Submitted by nans on Thu, 2006-04-06 09:07 in

I'm having problems with specials characters like é à è

The XML feed uses encoding:

see: http://www.zoomin.tv/xml/?pid=femistylewal&language=wal&cat=binnenland

In my PHP page I've included:
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"

Here is the result:

http://www.femistyle.be/fr/actua/videonieuws_binnenland.php

Not really readable :-)

Any suggestions?

Submitted by support on Thu, 2006-04-06 09:10

Hi,

I've always found that meta content-type directives in the HTML are ignored by browsers; and had more success by issuing it as a header:

<?php
  header
("Content-Type: text/html;charset=iso-8859-1");
?>

Does that help?

Submitted by nans on Thu, 2006-04-06 09:17

Nope .. :-(

Submitted by support on Thu, 2006-04-06 11:23

Hello,

I have just looked at the feed, and it is UTF-8 encoded, not ISO-8859-1. You will need to set the header like this:

<?php
  header
("Content-Type: text/html;charset=utf-8");
?>

However, that then means that your own special characters are not displayed correctly because they are in ISO-8859-1.

As your feed is in utf-8 encoding; it will be easier to save your convert your web page to match rather than the other way round. Most text editors should be able to do this for you; if you look for the encoding options when you save the file.

Hope this helps,
David.

Submitted by nans on Thu, 2006-04-06 21:07

This helps.. Thanks!