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

前端 未结 15 1678
花落未央
花落未央 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:22

    I have used this library, similar to jchardet for detecting encoding in Java: http://code.google.com/p/juniversalchardet/

提交回复
热议问题