【问题标题】:How to prevent non-ascii character turn weird from html form input如何防止非ascii字符从html表单输入中变得奇怪
【发布时间】:2016-12-03 04:13:18
【问题描述】:

当用户提交他的名字时

索斯滕·洛尔莱因

我收到了

托斯滕·莱尔莱因

当我将我的名字提交为 Löhrlein 时,我的计算机上并没有发生这种情况,但是有什么技术可以防止角色在所有情况下变得怪异吗?

【问题讨论】:

    标签: php utf-8 character-encoding non-ascii-characters


    【解决方案1】:

    尝试更新它并在您的 HTML 页面中检查它:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    

    【讨论】:

    • 我的页面中已经有这个了,大多数情况下它可以工作,但有时它没有
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-12-09
    • 1970-01-01
    • 1970-01-01
    • 2012-08-29
    • 1970-01-01
    • 2011-01-03
    • 1970-01-01
    相关资源
    最近更新 更多