Page 1 of 1
RSS news in russian: trouble with encoding
Posted: Sun 8. May 2005, 20:31
by DeepHawk
Hi,
I've russian rss channel with xml like this:
Code: Select all
<?xml version='1.0' encoding="windows-1251"?>
<rss version='2.0'>
<channel>
...
when I create article with RSS content, news on frontend are show with broken characters.
what can i do ?
Posted: Mon 9. May 2005, 01:15
by luna
change the encoding line 92 in include/inc_ext/rsswriter/rss10.inc.php
from echo '<?xml version="1.0" encoding="iso-8859-1"?> to
echo '<?xml version="1.0" encoding="windows-1251"?>
Posted: Mon 9. May 2005, 11:48
by DeepHawk
doesn't work

Posted: Tue 10. May 2005, 06:35
by Oliver Georgi
maybe importer has problems when encoding of feed is not iso-8859-1 or UTF-8
Can you send me a link to a Russian RSS feed. I will check that. A charcode conversion has to be done to work properly.
Oliver
Posted: Tue 10. May 2005, 17:40
by DeepHawk
Posted: Sat 14. May 2005, 12:40
by DeepHawk
any idea ?
Posted: Sat 14. May 2005, 15:22
by Oliver Georgi
haven't time to fix it
Oliver
Posted: Sun 15. May 2005, 18:12
by Oliver Georgi
OK, I think I have fixed it.
download and expand following file into
include/inc_ext/ConvertCharset
http://www.phpwcms.de/support/ConvertCharset.zip
and replace function
parseRSS in
include/inc_front/front.func.inc.php
http://www.phpwcms.de/support/parseRSS.txt
This converts charset found in RSS file to UTF-8 entities.
Oliver
Posted: Sun 15. May 2005, 18:52
by DeepHawk
BIG THANKS! It's working!!
Posted: Tue 17. May 2005, 09:41
by DeepHawk
One more question: what replacement tag can i use for feeds body text preview in list ? i found {title} and {link}.
Posted: Tue 17. May 2005, 09:50
by Oliver Georgi
have to check again
Don't know if it is implemented.
Oliver