ext 2.1 的ajax全部才用utf-8的urlencode,例如action=reg&rname=%E5%88%98%E5%85%B4%E6%99%A8
导致一个问题
如果你的接收端脚本用的php 4
那么你怎么解释成gbk的字符呢?
然后输入进gbk的数据库。
答案是没有简单的办法!!!!
。。。。。。。。。。。。。。
要么找一个转换函数转换到gbk
但是没找到好的函数,都需要用字典。
于是只能把数据库改成utf8
然后连接的时候先set names utf8
然后输入的时候先urldecode再输入进数据库
怎么那么麻烦啊
。。。。。。。。。。。。。。
但是如果是php5就好办了
用iconv 把utf8 转换到gbk就可以了
如果是asp.net就更好办了
直接encoding一下就好了
于是我得出的结论是,ext还是结合asp.net比较好
这是什么狗屁结论啊,~哈
为了一点点困难而去用微软的东西?
php5也不是昨天才出来的,还在玩PHP4的兄弟们该换换了
你知道的真不少啊……PHP、.NET、Ext、Flash,似乎无所不包呢。
php4一样有iconv函数呀
I just want to say I am beginner to blogging and site-building and seriously savored your page. Very likely I’m likely to bookmark your blog . You amazingly have perfect articles. Bless you for sharing your blog.
Hi, Neat post. There’s a problem with your website in internet explorer, would check this… IE still is the market leader and a good portion of people will miss your excellent writing because of this problem.