Kotlin

Kotlin/Android detect text encoding

Recently doing Android version of drop-box input method,I had a problem importing the code table。Because the code table of the drop-box input method supports two encoding formats: utf8 and gb18030.,Even my own built-in code table uses a mixture of these two formats.。In Swift or Python,If you use the wrong encoding to decode text,You will receive an error。Use this method,I can do it easily[……]

Click link to continue reading...