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 基于卷积神经网络的声纹识别
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 stm32开发clion时遇到的编译问题