Encoding problem

View: New views
3 Messages — Rating Filter:   Alert me  

Encoding problem

by Daniele Dellafiore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone.

I am haveng troubles parsing this feed:

http://rateyourmusic.com/rss/latest

My problems are with the the content of the review. I can see it fine
if I open that URL with Firefox.
Rome parse something like this:

"They of course miss  "Miss misery", but there is really
underrated "This month's messiah""

and it really seems some encoding error. I parse this way:

                       XmlReader reader = new XmlReader(stream);
                       SyndFeed feed = input.build(reader);

XmlReader has utf-8 encoding, if asked. while SyndFeed has "null" encoding.

Any idea?

--
Daniele Dellafiore
http://blog.ildella.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Encoding problem

by Nick Lothian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Daniele,

Did you see this response: https://rome.dev.java.net/servlets/ReadMsg?list=users&msgNo=1746?

Nick

> -----Original Message-----
> From: Daniele Dellafiore [mailto:ildella@...]
> Sent: Tuesday, 31 March 2009 5:15 PM
> To: users@...
> Subject: Encoding problem
>
> Hi everyone.
>
> I am haveng troubles parsing this feed:
>
> http://rateyourmusic.com/rss/latest
>
> My problems are with the the content of the review. I can see it fine
> if I open that URL with Firefox.
> Rome parse something like this:
>
> "They of course miss  "Miss misery", but there is really
> underrated "This month's messiah""
>
> and it really seems some encoding error. I parse this way:
>
>                        XmlReader reader = new XmlReader(stream);
>                        SyndFeed feed = input.build(reader);
>
> XmlReader has utf-8 encoding, if asked. while SyndFeed has "null"
> encoding.
>
> Any idea?
>
> --
> Daniele Dellafiore
> http://blog.ildella.net/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...


IMPORTANT: This e-mail, including any attachments, may contain private or confidential information. If you think you may not be the intended recipient, or if you have received this e-mail in error, please contact the sender immediately and delete all copies of this e-mail. If you are not the intended recipient, you must not reproduce any part of this e-mail or disclose its contents to any other party. This email represents the views of the individual sender, which do not necessarily reflect those of Education.au except where the sender expressly states otherwise. It is your responsibility to scan this email and any files transmitted with it for viruses or any other defects. education.au limited will not be liable for any loss, damage or consequence caused directly or indirectly by this email.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Encoding problem

by Robert (kebernet) Cooper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Actually Nick, I think the tubes got clogged with your initial reply. It came into my inbox after Daniele's reply for some reason, even though it was sent earlier.

On Wed, Apr 1, 2009 at 2:12 AM, Nick Lothian <nlothian@...> wrote:
Hi Daniele,

Did you see this response: https://rome.dev.java.net/servlets/ReadMsg?list=users&msgNo=1746?

Nick

> -----Original Message-----
> From: Daniele Dellafiore [mailto:ildella@...]
> Sent: Tuesday, 31 March 2009 5:15 PM
> To: users@...
> Subject: Encoding problem
>
> Hi everyone.
>
> I am haveng troubles parsing this feed:
>
> http://rateyourmusic.com/rss/latest
>
> My problems are with the the content of the review. I can see it fine
> if I open that URL with Firefox.
> Rome parse something like this:
>
> "They of course miss &#160;&#34;Miss misery&#34;, but there is really
> underrated &#34;This month&#39;s messiah&#34;"
>
> and it really seems some encoding error. I parse this way:
>
>                        XmlReader reader = new XmlReader(stream);
>                        SyndFeed feed = input.build(reader);
>
> XmlReader has utf-8 encoding, if asked. while SyndFeed has "null"
> encoding.
>
> Any idea?
>
> --
> Daniele Dellafiore
> http://blog.ildella.net/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...


IMPORTANT: This e-mail, including any attachments, may contain private or confidential information. If you think you may not be the intended recipient, or if you have received this e-mail in error, please contact the sender immediately and delete all copies of this e-mail. If you are not the intended recipient, you must not reproduce any part of this e-mail or disclose its contents to any other party. This email represents the views of the individual sender, which do not necessarily reflect those of Education.au except where the sender expressly states otherwise. It is your responsibility to scan this email and any files transmitted with it for viruses or any other defects. education.au limited will not be liable for any loss, damage or consequence caused directly or indirectly by this email.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...




--
:Robert "kebernet" Cooper
::kebernet@...
Alice's cleartext
Charlie is the attacker
Bob signs and encrypts
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8