Forum

Display danish letters

2009-01-27 01:50:54

bas

Hi I have tried the RSS php script scriptol.com/rss/rss-direct.php on my website and it seems to work fine. But the danish letters Æ, Ø and Å are not displayed / shown correctly. I think it has to do with the lack of definition of dansih charset / ISO in the PHP script. But how and where do I insert the charset definition in the PHP script? Thank you. Kind regards, Martin
2009-01-30 02:42:01

scriptol

The encoding of the demo, rss-direct.php is
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
that should display any european character set. But it is possible that your RSS file makes use of a different encoding. You have just to copy this encoding in the definition of the HTML page that includes the data, for example:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
or
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
2009-01-31 02:14:43

bas

Thank you very much. It was solved when I changed to <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in my HTML. Regards, Martin
2010-01-22 23:06:12

utkirbek

I have got a problem like this my rss file encode is utf-8 but charachters are shown incorrect at ipages dot uz/rss/common-choice.php Please comment on this.
2010-01-23 12:02:31

scriptol

What is your rss file?