zoukankan
html css js c++ java
Requst.QueryString[]取得的值是中文时,有时少了一个或者多个字符的问题
在.net 环境中有时用
Requst.QueryString[]取得的值是中文时,获取的的值若是数字的,或者是英文的,或者是英文加数字,中文加数字的都没有问题,但当获取纯中文字符时有时出现取得的值少了一个或者多个字符。我不知道这是个什么问题,算不算是vs环境的一个bug呢?后在网上查找得如下解决方案:要修改web.config文件,修改如下:
<
system.web
>
<
compilation
debug
="true"
/>
<
globalization
requestEncoding
="GB2312"
responseEncoding
="GB2312"
uiCulture
="zh-CN"
culture
="zh-CN"
fileEncoding
="GB2312"
/>
</
system.web
>
即可。
查看全文
相关阅读:
Sum Root to Leaf Numbers 解答
459. Repeated Substring Pattern
71. Simplify Path
89. Gray Code
73. Set Matrix Zeroes
297. Serialize and Deserialize Binary Tree
449. Serialize and Deserialize BST
451. Sort Characters By Frequency
165. Compare Version Numbers
447. Number of Boomerangs
原文地址:https://www.cnblogs.com/wbcms/p/1043774.html
最新文章
elasticsearch笔记(4) java操作es的查询_03----- id查询
文本编辑器vim
文件和文件夹的操作
linux基本命令
linux界面介绍
linux系统目录介绍
安装linux系统
linux的前世今生
IP地址
传输层协议
热门文章
TCP/IP四层模型
SQL Interview Question
Populating Next Right Pointers in Each Node II 解答
Divide Two Integers 解答
HashMap Java Doc
What’s the difference between an interface and an abstract class in Java?
Copy Constructor in Java
4Sum 解答
Reverse Nodes in k-Group 解答
Swap Nodes in Pairs 解答
Copyright © 2011-2022 走看看