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
精彩评论