Java : How to determine the correct charset encoding of a stream

前端 未结 15 1892
花落未央
花落未央 2020-11-22 02:06

With reference to the following thread: Java App : Unable to read iso-8859-1 encoded file correctly

What is the best way to programatically determine the correct cha

15条回答
  •  野的像风
    2020-11-22 02:20

    If you don't know the encoding of your data, it is not so easy to determine, but you could try to use a library to guess it. Also, there is a similar question.

提交回复
热议问题