新手问题 咨询支付宝异步通知乱码问题

as181920 · 2013年08月30日 · 3596 次阅读

同一套代码,所有支付请求接口中已经设定了

ALIPAY_DEFAULT_CHARSET = 'utf-8'
 options.merge!(service: @service, partner: ALIPAY_PID, _input_charset: ALIPAY_DEFAULT_CHARSET)

程序自身功能中中文都正常,在支付宝双功能接口异步通知消息返回过来, 服务器 1:正常

"subject"=>"兰芝臻白清润基础护理礼盒"

服务器 2:中文乱码

"subject"=>"ä¸<89>é<87><8d>å¤<9a>æ<95><88>æ´<81>é<9d>¢è<86><8f>"

服务器 1 是我的测试服务器:en_HK.UTF-8,Linux ubuntuonx60 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:44:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux cap 自动部署

服务器 2 是客户的生产环境:zh_CN.UTF-8,Linux SSEP01 2.6.32-220.23.1.el6.i686 #1 SMP Mon Jun 18 16:56:21 BST 2012 i686 i686 i386 GNU/Linux 手动部署,参见(http://ruby-china.org/topics/13516

没想到哪里的问题,给指导下?


补充:服务器 1,nginx+passenger,服务器 2,apache+passenger

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号