[英]Laravel - Special Characters doesn't work in controller
When I try to echo
or var_dump
a variable with special characters doesn't work. 当我尝试
echo
或var_dump
带有特殊字符的变量不起作用。
It save the values correctly in database. 它将值正确保存在数据库中。 It show correctly at view but in controller no.
它在视图中正确显示,但在控制器编号中正确显示。
For example: 例如:
echo 'Março';
returns Março
I already have problems when I try to do a select. 尝试进行选择时我已经遇到了问题。
How can I solve that. 我该如何解决。
<meta charset="utf-8">
just make sure that the above declaration is there in your head definition of the HTML. 只要确保您的HTML头定义中包含上述声明即可。 that should work it out :)
那应该解决:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.