I can not understand the reason why Cyrillic transmitted in TextView displayed in diamonds? I read a plain text file by the code below. Return result to TextView . What is the problem, tell me. Encoding in Android studio in the File Encoding section set UTF8.
fileInputStream = context.openFileInput(MainActivity.DISCOUNTS); bufferedInputStream = new BufferedInputStream(fileInputStream); byte[] input = new byte[fileInputStream.available()]; while ((fileInputStream.read(input)) != -1) { result += new String(input); }