Java如何快速定位无效字符_java – Track.getSimilar:在元素中找到了无效的XML字符(Unicode:0x3)…...

我使用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)

我该如何解决这个问题呢?

先感谢您

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值