开发者

Rails 3: Read chinese characters

开发者 https://www.devze.com 2023-03-26 11:20 出处:网络
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?

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

精彩评论

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