By nelliza on
Please help me! Cannot figure this issue for few days already.
Drupal 4.5.2 with no modifications. Ukrainian language. Default charset not changed - UTF-8
Just in case the site in question is http://alliance.maidanua.org/
Cannot read valid RSS feed in Ukrainian (charset-1251) into drupal
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fmaidanua.org%2Finclu...
As well is another valid feed in Russian (UTF-8)
http://www.livejournal.com/users/alexsun/data/rss
warning: xml_parse(): supplied argument is not a valid XML Parser resource in modules/aggregator.module on line 463.
English laugnage feeds are read ok. For example Slashdot feed.
Thanks in advance!
Comments
Watchdog
Drupal should be able to handle Windows-1251, if you have iconv/recode/mbstring support in your PHP installation. If you don't, then you should get a watchdog warning if you try to aggregate such a feed.
The UTF-8 feed should work regardless. I'm not sure what the problem is, but if the problem was encoding-related, you'd really get another error message altogether.
--
If you have a problem, please search before posting a question.
iconv support is enabled of course
There is properly working install of drupal 4.4.2 on same server (same apache, same php, same mysql) that reads same feeds without any problems.
Maybe I should submit bug report? Not sure if I don't miss something obvious still...
you could try running the
you could try running the feed through http://feedvalidator.org - there's probably a character it doesn't like. this should highlight it for you
oh sorry! just re-read your
oh sorry! just re-read your message. you've already done this. oops
Update
UTF-8 feed started working with no changes, probably remote site was down or something. Sorry for alert
1251 feed still does not work. I recompiled php with mbstring and got new error message when trying to read this feed
no element found at line 1
So I have mbstring and iconv enabled, I cannot add recode since I need imap support (see http://us3.php.net/manual/en/ref.recode.php )
Any other suggestions?
Looks I have to convert 1251 feed to UTF before importing to drupal?