Java - read UTF-8 file with a single emoji symbol
问题 I have a file with a single unicode symbol. The file is encoded in UTF-8. It contains a single symbol represented as 4 bytes. https://www.fileformat.info/info/unicode/char/1f60a/index.htm F0 9F 98 8A When I read the file I get two symbols/chars. The program below prints ? 2 ? ? 55357 56842 ====================================== �� 16 & ====================================== ? 2 ? ====================================== Is this normal... or a bug? Or am I misusing something? How