PedroHLC / ViewLyricsOpenSearcher

Open searcher for lyrics files (".lrc" and ".txt") , stored in Crintsoft's MiniLyrics server ("ViewLyrics.com").
33 stars 6 forks source link

Encoding issue with nonenglish search #3

Closed el-lsan closed 9 years ago

el-lsan commented 9 years ago

there's an issue with encoding for noneglish characters

lyricserror2

lyricserror

PedroHLC commented 9 years ago

Confirmed to exist only in Java version, the encoding is probably lost during toString or charAt returning to two bytes instead of one - also - I have motives to believe that the problem is with charAt as header should always be 22 bytes long, and it's failing in Java, having to use in most cases 21 and some rare cases 20

PedroHLC commented 9 years ago

Sorry for taking so long to solve it, I completely forgot about it, solved in 9887cc5395d51bc5f664d11930ae34cad6d681e9