【问题标题】:Solr unsupported encoding ANSISolr 不支持的编码 ANSI
【发布时间】:2014-05-20 08:43:20
【问题描述】:

我需要使用 post.jarANSI 中进行编码,但是当我尝试 -Dfile.encode=ANSI 时,我总是得到 unsupported encoding: ANSI

如何更改默认支持的编码? (服务器是码头)

【问题讨论】:

    标签: apache solr jetty encode ansi


    【解决方案1】:

    在java中正确的ANSI编码常量是Cp1252。 所以你必须指定:

    -Dfile.encode=Cp1252
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-05
      • 1970-01-01
      • 1970-01-01
      • 2011-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多