我用的是last.fm API:Api Last.fmTrack.getSimilar:無效的XML字符(Unicode:0x3)中的元素被發現...
我的歌曲列表(軌道)與他們的藝術家,我想爲他的歌曲中的每首歌曲恢復。方法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)
我怎樣才能解決這個問題,請?
預先感謝您
感謝您的回答:) –
請注意,某些文本編輯器中會顯示控制字符(例如,0x03在Textmate中顯示爲^ ^)您可以嘗試複製/粘貼您的可疑文本,以便以可視方式查找時髦字符! ,正則表達式總是可以跟蹤這些字符。 – rinogo