[英]invalid byte sequence in US-ASCII whith array
I am trying to put strings inside an array in rails. 我试图将字符串放入rails中的数组中。 My problem is when the elements inside this array are not English it give me this strange page and say this error - ArgumentError in UsersController#my_profile
我的问题是,当此数组中的元素不是英语时,它给我这个奇怪的页面并说出此错误-UsersController#my_profile中的ArgumentError
invalid byte sequence in US-ASCII US-ASCII中的无效字节序列
do you know what should i do ?? 你知道我该怎么办吗?
thanks 谢谢
If you are on macOS or Linux, you can start Middleman this way to force it to use UTF-8: 如果您使用的是macOS或Linux,则可以通过以下方式启动Middleman,以强制其使用UTF-8:
LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8
Not sure about Windows, though. 不过,不确定Windows。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.