开发者

Rails 3: Read chinese characters

I have a string containing "系统退信" but when read, it becomes "=?gb2312?B?z7XNs83L0MU=?.="

How can I compare if t开发者_运维问答he string has those chinese characters?

Thanks.


add this "#encoding:utf-8" in the source file which contains the "系统退信".That should solve the issue

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜