[Rbrainz-users] REXML::ParseException: Declarations can only occur in the doctype declaration. (MusicBrainz::Webservice::ResponseError)

Armin Otto arminotto at googlemail.com
Fri Aug 17 19:41:49 EDT 2007

i guess i'll have to, thanks.

by the way: Even though I have a rescue block, in case the mentionen error
occurs, the program terminates.
no rescueing possible. how come ?

2007/8/17, Philipp Wolfer <phw at rubyforge.org>:
> Hello Armin,
> Ok, some more information:
> All requests to the MB server must be UTF-8 encoded, the above example
> uses latin1. This causes the trouble.
> Try to save the test file with UTF-8 encoding and write "ü" instead of
> "\374" or use the iconv module to convert between the encodings like
> Iconv.iconv("utf-8", "iso-8859-1", "Christina St\374rmer").to_s
> By the way: RBrainz will always return UTF-8 strings. If you need to
> do some string processing with the results you might want to use jcode
> in your application. Just include it with the following two lines and
> you can safely use string operations.
> require 'jcode'
> --
> Philipp Wolfer
> _______________________________________________
> Rbrainz-users mailing list
> Rbrainz-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rbrainz-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rbrainz-users/attachments/20070818/09b01a2e/attachment.html 

More information about the Rbrainz-users mailing list