Re: strange character
| From: | Christoph Becker | Date: | Fri, 27 Feb 2015 16:11:22 +0000 |
| Subject: | Re: strange character | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324541@lists.php.net to get a copy of this message | ||
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.
--
Christoph M. Becker