I found a bug that occurs under very specific circumstances, as far as I can tell.
A TranslateServerIsDown exception is thrown when I try to translate the words "slow" and "fast" (so far those are the only two words I have found to cause this error) from English to Chinese Simplified (locale is zh_cn). Other locales (specifically Chinese Traditional, zh_tw) work fine.
Going through line by line shows that the error in the title is thrown in line 38 when the split(",") method is called. Something about the encoding that is returned from Google, only from those two words and that specific locale, breaks it.
I played around with forcing utf-8 and other encodings, but was not yet able to fix the problem.
I found a bug that occurs under very specific circumstances, as far as I can tell.
A TranslateServerIsDown exception is thrown when I try to translate the words "slow" and "fast" (so far those are the only two words I have found to cause this error) from English to Chinese Simplified (locale is zh_cn). Other locales (specifically Chinese Traditional, zh_tw) work fine.
Going through line by line shows that the error in the title is thrown in line 38 when the split(",") method is called. Something about the encoding that is returned from Google, only from those two words and that specific locale, breaks it.
I played around with forcing utf-8 and other encodings, but was not yet able to fix the problem.