dongnuo3749 2015-12-12 12:31
浏览 18

将编码设置为输入html。 当文档没有帮助我

I have the next form of html

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
....
<form accept-charset="utf8" id="validation_data" action="script/submit_buy_sapsan.php" method="POST" ;>
   <div class="type_payment">
   <div class="list">

<input class="last_name" type="text" maxlength="35" size="23" name="passenger[0][lastName]" value='' placeholder="Фамилия">

...............
</form>

I enter a text to i_nput and i send to handler script, which i set in the form. i just show a post data to self in the handler script(print_r($_POST)) . The next i check type of encoding data, and i see - ascii instead of utf-8. I tried to read a documentation from w3 and i seen that i can use accept-charset, but it doesn't help me. I tried to set encoding with help php functions(iconv, mb_convert_encoding and etc) it doesn't help too. Actually i get different encoding, hammering different texts, in my handler script and i don't understand why. I need utf-8

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
    • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序