UTF-8 CJK characters not displaying in Java

后端 未结 4 593
天涯浪人
天涯浪人 2020-12-10 13:27

I\'ve been reading up on Unicode and UTF-8 encoding for a while and I think I understand it, so hopefully this won\'t be a stupid question:

I have a file which conta

4条回答
  •  死守一世寂寞
    2020-12-10 13:55

    Depending on your platform, it is highly likely that your console (or windows CMD) does not support or use the UTF-8 characterset, and therefor converts all unmappable characters to a question mark.

    On Windows for example CMD almost always uses WIN1252 or a similar single byte characterset.

提交回复
热议问题