注意:这可能与我已经问过Highcharts export server special characters replaced with question mark的问题有关。
PhantomJS arguments.js
example会返回您提供的参数。
示例:
phantomjs arguments.js a b c
返回:
0: arguments.js
1: a
2: b
3: c
在安装了PhantomJS 1.9.0的Mac OS X上,使用特殊字符返回参数没有问题。但是在我正在使用的远程服务器上(Linux Debian 6),它无法按预期工作:
phantomjs arguments.js à é €
在Mac OS X上返回(如预期)以下内容:
0: arguments.js
1: à
2: é
3: €
我在Linux Debian 6上得到了什么:
0: arguments.js
1: Ã
2: é
3: â
我已检查PhantomJS requirements并安装了FreeType和Fontconfig。
答案 0 :(得分:1)
我只需要配置终端的默认编码(在我的情况下为en_US.UTF-8
而不是en_US
),我的问题就消失了。