[Rbrainz-users] REXML::ParseException: Declarations can only occur in the doctype declaration. (MusicBrainz::Webservice::ResponseError)
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rbrainz-users