我使用last.fm API:Api Last.fm
我有一组包含歌曲(曲目)及其艺术家的列表,并且我想为每首歌曲恢复类似的歌曲。方法Track.getSimilar(Artist, track, key)运行得非常完美。但是,当艺术家或曲目为阿拉伯语时,我会收到以下异常:
[Fatal Error] :2583:13: An invalid XML character (Unicode: 0x3) was found in the element content of the document.
Exception in thread "main" de.umass.lastfm.CallException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x3) was found in the element content of the document.
at de.umass.lastfm.Caller.call(Caller.java:268)
at de.umass.lastfm.Caller.call(Caller.java:189)
at de.umass.lastfm.Track.getSimilar(Track.java:369)
我该如何解决这个问题呢?谢谢您提前帮助。