PDA

View Full Version : How Utf8 change on Cyrilic (Windows-1251) in RSS (XML)?


Romario
09-19-2005, 07:14 PM
How Utf8 change on Cyrilic (Windows-1251) in RSS (XML), XML in my site don't work.

Romario
09-20-2005, 05:52 PM
Peoples, please tell me it's possible?

David
09-20-2005, 07:17 PM
What about something like this?
http://www.phplinkdirectory.com/forum/viewtopic.php?p=3503#3503

Romario
09-20-2005, 08:27 PM
I'm do it, but xml don't work.

I think need change all xml_utf8_encode in rss.php, but i don't know how:

Content visible to registered users only.

BrunoDesign
02-23-2006, 03:08 PM
I need to know the same thing. How can i change the encoding from utf-8 to iso-8859-1. The Umlaute ä, ö and ü aren't shown the right way in rss. Changing the encoding in rss.tpl doesn't do it. I suppose that i need to change someting in rss.php but i don't know how.

Please help!

BrunoDesign
03-01-2006, 12:24 PM
After some research i found the answer.

Look for the following code in rss.php:

Content visible to registered users only.

Now remove "xml_utf_encode", the "(" and ")" for TITLE, DESCRIPTION and OWNER_NAME. Those can contain special characters like ä, ö and ü or somethin like it. Removing it prevents the checking for utf-8 encoding.

The code will have to look like this:

Content visible to registered users only.

Now you will have to change encoding in rss.tpl. I changed it to iso-8859-1.

Beware of using charcters like "&" in description. RSS doesn't like it.

It's surely not the cleanest way to get things going, but for me it works as you can see on http://www.katalogfuchs.de.

BrunoDesign
03-01-2006, 01:04 PM
I forgott something.
Look for the following code in rss.php:

Content visible to registered users only.

and change it to:

Content visible to registered users only.

This has to be done for correct category and category-description in rss.

BrunoDesign
03-26-2006, 05:15 PM
For masking html-entities you have to add "htmlspecialchars()" to TITLE, DESCRIPTION and OWNER_NAME. From now on you can use "&" and so on.

The code will have to look like this:

Content visible to registered users only.

anon
03-29-2006, 06:58 AM
oh **censored****censored****censored****censored**.. i was just going to say find the special case that would replace the instances of 'xml_utf8_encode()' where need be

hahaha

sorry i'm 6 months late on posting :lol:
look like bruno has helped this thread along.