【发布时间】:2014-05-20 08:43:20
【问题描述】:
我需要使用 post.jar 在 ANSI 中进行编码,但是当我尝试 -Dfile.encode=ANSI 时,我总是得到 unsupported encoding: ANSI。
如何更改默认支持的编码? (服务器是码头)
【问题讨论】:
标签: apache solr jetty encode ansi
我需要使用 post.jar 在 ANSI 中进行编码,但是当我尝试 -Dfile.encode=ANSI 时,我总是得到 unsupported encoding: ANSI。
如何更改默认支持的编码? (服务器是码头)
【问题讨论】:
标签: apache solr jetty encode ansi
在java中正确的ANSI编码常量是Cp1252。 所以你必须指定:
-Dfile.encode=Cp1252
【讨论】: