Rails 3.2.11:参数中的问号(编码不是UTF8)

时间:2013-02-02 01:57:47

标签: ruby-on-rails encoding utf-8 parameters

由于某些原因,参数不再是UTF8,而UTF8字符被替换为问号,如UTF8检查所示:

Parameters: {"utf8"=>"?", "authenticity_token"=>"89/NFRS99NSGMsgri74h4NtDVVh595G3NHl2Tb2r0NY=", "user"=>{"name"=>"Administrator", "email"=>"admin@admin.admin", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "role_ids"=>["1", ""]}, "commit"=>"Update User", "id"=>"1"}

HTML标头包含meta-charset标记,其值为utf-8config.encoding选项设置为utf-8

浏览器的编码设置也设置为UTF8并正确发送复选标记(✓),编码为%E2%9C%93

有什么想法吗?

0 个答案:

没有答案