[56k Warn]modify existing news system to UTF-8 compatibility
Posted: Thu Jun 30, 2005 7:38 am
Jcart | If included images please include [56k Warn] in title.
Hi there,
Some time ago I realized a site with content in English and German language. At that time the existing "newswriter" script (http://www.newswriter.info) seemed to be a suitable solution for new the news system.
Now the website should be upgraded with two more languages: Chinese and Japanese. I needed to convert all contents to utf-8 and send the correct headers and all worked very well - but not the news system (which I haven´t wrote).
If I login to the system and write a new article (by simply coopy & paste some contents from a chinese website directly out of a browser window), everything seems to be fine and looks this way:

I already encoded the admin.php (the main file) and all included template-parts to utf-8 and added the accept-charste="utf-8" parameter to the html-forms. In addition, the admin.php file sends a utf-8 header via php and in the included header.php file is the correct http-equiv specification.
But if I just ">> go on" some more times (which displays some more menus, but all within the above mentioned admin.php file) to finally get to the article-preview, I get this:

But this isn´t utf-8, isn´t it? And I don´t know what it is and why the content is displayed this way...
Does anybody has an idea?
I would be so grateful!
Greetings,
Karsten
Hi there,
Some time ago I realized a site with content in English and German language. At that time the existing "newswriter" script (http://www.newswriter.info) seemed to be a suitable solution for new the news system.
Now the website should be upgraded with two more languages: Chinese and Japanese. I needed to convert all contents to utf-8 and send the correct headers and all worked very well - but not the news system (which I haven´t wrote).
If I login to the system and write a new article (by simply coopy & paste some contents from a chinese website directly out of a browser window), everything seems to be fine and looks this way:

I already encoded the admin.php (the main file) and all included template-parts to utf-8 and added the accept-charste="utf-8" parameter to the html-forms. In addition, the admin.php file sends a utf-8 header via php and in the included header.php file is the correct http-equiv specification.
But if I just ">> go on" some more times (which displays some more menus, but all within the above mentioned admin.php file) to finally get to the article-preview, I get this:

But this isn´t utf-8, isn´t it? And I don´t know what it is and why the content is displayed this way...
Does anybody has an idea?
I would be so grateful!
Greetings,
Karsten