Android: File was loaded in the wrong encoding: “UTF-8”

Error analysis: When we open a file, but Chinese is garbled, this is probably because our file is edited using UTF-8, and Windows uses the GBK encoding format by default, so it causes garbled characters when opening the file.


The project has a number of other departments sent me code encoding format utf-8, there are GBK, but are…