我需要用post.jar编码ANSI,但是当我尝试使用unsupported encoding: ANSI时,我总是得到-Dfile.encode=ANSI。
unsupported encoding: ANSI
-Dfile.encode=ANSI
如何更改默认支持的编码? (服务器是Jetty)
java中ANSI的正确编码常量是Cp1252。所以你必须指定:
-Dfile.encode=Cp1252