Re: strange character

From: Date: Fri, 27 Feb 2015 16:16:25 +0000
Subject: Re: strange character
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  Groups: php.general 
Request: Send a blank email to php-general+get-324542@lists.php.net to get a copy of this message
On 27 February 2015 16:11:22 GMT+00:00, Christoph Becker <cmbecker69@gmx.de> wrote: >Ashley Sheridan: > >> On 27 February 2015 14:36:50 GMT+00:00, hadi ><almarzuki2011@hotmail.com> wrote: >>> >>> Here is the web site im getting error while trying to download rss >feed >>>from it. >>> http://www.sahafah.net/rss.php >> >> I've had a look at the RSS feed and it is set to utf-8, both in the >xml declaration and the http headers. >> >> I have to assume the broken characters are because of something in >your script. Are you sure your PHP is saved into a utf-8 format? > >No, the feed is not properly UTF-8 encoded. Have a look at it with >Google Chrome, for instance: > >| This page contains the following errors: >| >| error on line 240 at column 208: Encoding error > >As I already said elsewhere in this thread, hadi would have to strip >out >the bad UTF-8 character sequences. Or maybe inform the provider of the >feed about the error. Ah, I was just looking at raw headers with cURL. Just checked that character indicated by your error and it's a letter i. Thanks, Ash

« previous php.general (#324542) next »