FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Memberlist ?????Register ?????Profile? ????Log in
?Problem with special chars View next topic
View previous topic
Post new topicReply to topic
Author Message
Hk.



Joined: 19 Mar 2006
Posts: 6

PostPosted: Sun Mar 19, 2006 3:57 pm Reply with quoteBack to top

Hello, nice script!

At the time rss2html is running on my localhost to test the script before I'll include it in my website and it works fine but special chars like "", "", and "" are not correct displayed.
I read that it would help to choose UTF-8 as charset so I changed it in the html-tpl but it didn't help.
I don't know, maybe I have to change other things in the PHP-Script or anywhere but I'm a newbie in PHP and don't know what to do. If you know how to solve my problem please write the solution step by step.

Sry my english is damn poor, hope you undertsand me.
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Sun Mar 19, 2006 5:52 pm Reply with quoteBack to top

Hk. wrote:
Hello, nice script!

At the time rss2html is running on my localhost to test the script before I'll include it in my website and it works fine but special chars like "", "", and "" are not correct displayed.
I read that it would help to choose UTF-8 as charset so I changed it in the html-tpl but it didn't help.
I don't know, maybe I have to change other things in the PHP-Script or anywhere but I'm a newbie in PHP and don't know what to do. If you know how to solve my problem please write the solution step by step.

Sry my english is damn poor, hope you undertsand me.


If your feed is in proper UTF-8 all should work fine. However, windows is known to use some non-UTF-8 characters. If you provide a link to your webpage and your feed I will try to help.

Jim
View user's profileSend private messageVisit poster's website
Hk.



Joined: 19 Mar 2006
Posts: 6

PostPosted: Sun Mar 19, 2006 6:01 pm Reply with quoteBack to top

Ok, I uploaded the files to my FTP:

http://www.clan-ohne-namen.org/rss2html.php

It's the standart template because I'm still testing.

So, you see all characters are displayed correct, only the special german chars like , , and ?Ÿ are not displayed right.
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Sun Mar 19, 2006 6:22 pm Reply with quoteBack to top

Hk. wrote:
Ok, I uploaded the files to my FTP:

http://www.clan-ohne-namen.org/rss2html.php

It's the standart template because I'm still testing.

So, you see all characters are displayed correct, only the special german chars like , , and ?Ÿ are not displayed right.


What is the link to the feed? Is that in UTF-8 ?

Jim
View user's profileSend private messageVisit poster's website
Hk.



Joined: 19 Mar 2006
Posts: 6

PostPosted: Sun Mar 19, 2006 6:35 pm Reply with quoteBack to top

http://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml
Thats the link to the file, I couldn't any charset information in the file.

Greetings Jay
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Sun Mar 19, 2006 7:02 pm Reply with quoteBack to top

Hk. wrote:
http://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml
Thats the link to the file, I couldn't any charset information in the file.

Greetings Jay


Your feed is in "iso-8859-1", a character set used by english versions of windows. The most recent version of rss2html.php is either 2.22 or 2.23. They both contain the same ability to convert between character sets if the module is installed on the server. But the difference in character sets is the cause of the "bad" characters.

Jim
View user's profileSend private messageVisit poster's website
Hk.



Joined: 19 Mar 2006
Posts: 6

PostPosted: Sun Mar 19, 2006 9:39 pm Reply with quoteBack to top

I tried to change the charset to iso-8859-1 in the meta-tag of the html template.
I think I must install a new XML-Parser (2.22 or 2.23) on the Webserver or is there another solution for this problem?

Jay
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Sun Mar 19, 2006 9:44 pm Reply with quoteBack to top

Hk. wrote:
I tried to change the charset to iso-8859-1 in the meta-tag of the html template.
I think I must install a new XML-Parser (2.22 or 2.23) on the Webserver or is there another solution for this problem?

Jay


I would upgrade, since the parser only outputs UTF-8.

Jim
View user's profileSend private messageVisit poster's website
Hk.



Joined: 19 Mar 2006
Posts: 6

PostPosted: Sun Mar 19, 2006 10:01 pm Reply with quoteBack to top

Sry, I'm a little bit stupid ;)

You mean I should upgrade the XML-parser on my Webserver to a newer version which only output UTF-8?

Thx for help.
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Sun Mar 19, 2006 11:54 pm Reply with quoteBack to top

Hk. wrote:
Sry, I'm a little bit stupid ;)

You mean I should upgrade the XML-parser on my Webserver to a newer version which only output UTF-8?

Thx for help.


I meant you should upgrade rss2html.php

Jim
View user's profileSend private messageVisit poster's website
Hk.



Joined: 19 Mar 2006
Posts: 6

PostPosted: Mon Mar 20, 2006 4:59 pm Reply with quoteBack to top

Ok, but i can't find a version above my current version which I downloaded here from the download site of freeforall.com.
Is a later version available?
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Mon Mar 20, 2006 5:01 pm Reply with quoteBack to top

Hk. wrote:
Ok, but i can't find a version above my current version which I downloaded here from the download site of freeforall.com.
Is a later version available?


If you have either version 2.22 or 2.23 then you have the latest version, and the problem is your web server doesn't have the required module to covert between the charactersets.

Jim
View user's profileSend private messageVisit poster's website
webva



Joined: 02 May 2006
Posts: 3

PostPosted: Tue May 02, 2006 3:46 pm Reply with quoteBack to top

MacSupport wrote:
If you have either version 2.22 or 2.23 then you have the latest version, and the problem is your web server doesn't have the required module to covert between the charactersets.

Jim


Could you ellaborate on what "modules" for converting character sets you are referring to?

Using RSS2HTML I provide free feed content to interested webmasters for thier site. My blog feed is automatically produced in UTF-8, which I think is great, but a lot of webmasters haven't caught the vision of Unicode, yet.

For maximum impact, it is better for me to provide various encodings (but mainly ISO-8859-1) for feeds, to match the recepients page encoding.

If you could provide a list of the required modules and the appropriate code line that goes above:

echo $template;

Thanks, Brent

I could then create

It would be greatly appreciated.
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Tue May 02, 2006 3:51 pm Reply with quoteBack to top

webva wrote:
MacSupport wrote:
If you have either version 2.22 or 2.23 then you have the latest version, and the problem is your web server doesn't have the required module to covert between the charactersets.

Jim


Could you ellaborate on what "modules" for converting character sets you are referring to?

Using RSS2HTML I provide free feed content to interested webmasters for thier site. My blog feed is automatically produced in UTF-8, which I think is great, but a lot of webmasters haven't caught the vision of Unicode, yet.

For maximum impact, it is better for me to provide various encodings (but mainly ISO-8859-1) for feeds, to match the recepients page encoding.

If you could provide a list of the required modules and the appropriate code line that goes above:

echo $template;

Thanks, Brent

I could then create

It would be greatly appreciated.


The modules I am refering to are in PHP, this one that looks like the issure is mbstring, but that also uses iconv and others.

Jim
View user's profileSend private messageVisit poster's website
webva



Joined: 02 May 2006
Posts: 3

PostPosted: Tue May 02, 2006 5:30 pm Reply with quoteBack to top

Ok, if I understood the PHP doc on ICONV, all I needed to do is put:

$template = iconv("UTF-8", "ISO-8859-1", "$template");

just above
echo $template;

When I do this, my feed reads down though the date and stops. No title or excerpt. Also, no matter how many MAXITEMS, I list, it only shows the title, description, etc down through the first entry's date and stops output. In other words when MAXITEMS=3 it does not show the dates for all three, just for the first. And still no entry title or excerpt.

This is on a feed that ALWAYS has a quotation mark in the entry titles. If I use the same line above and a feed that doesn't have quotations, it appears to work fine.
View user's profileSend private message
Display posts from previous:?? ? ?
Post new topicReply to topic


?Jump to:? ?



View next topic
View previous topic


Powered by phpBB ? 2001, 2002 phpBB Group :: FI Theme