Convert Shift_JIS format to UTF-8 format
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to convert a Shift_JIS formatted file into UTF-8 format. For this, below is my approach: Read Shift_JIS file getBytes of each line and convert it to UTF-8 Create new file and write UTF-8 converted value to it Issue is that at step 2 conversion is not happening. I am using below code for converting Shift_JIS to UTF-8: InputStream inputStream = getContentResolver().openInputStream(uri); BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); byte[] b = line.getBytes("Shift_JIS"); String value = new String(b,