Ajax POST数据乱码问题~
当XMLHTTP向服务器用post方式提交数据时,只能默认的以UTF-8方式提交。
(网上流行的这种观点是不正确的!)
so,如果系统都UTF-8方式开发的话当然不存存任何问题。
否则保存的数据不一定是你想要的。
解决的方法:
1)用VBS换码
http://blog.czw.name/archives/60.html
2)用JS换码
GB2312
3)全站UTF-8
4)数据传送全程XML,然后处理。
5)设置文档头
req.xmlHttpRequest.setRequestHeader('Content-type', 'application/x-www-form-urlencoded;charset=GB2312');
6)在服务端换码
如Java
postedData = new String(postedData.getBytes("UTF-8"),"GB2312");
不能设置 HTTP 头的 encoding 么?
不过上面的是 VBScript 的代码,以前在学校时写的。
哦...
我还没有实践一下这种方法..
在学校的那个无刷新(贴图)BBS?
证明是不行的了~~
和默认的没有什么差别
经证明
这样是可以的
req.xmlHttpRequest.setRequestHeader('Content-type', 'application/x-www-form-urlencoded;charset=GB2312');
可以个鸟蛋
3ssssssss
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1031 free teen sex girl free teen sex nice <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1031">free teen sex</a> sexy
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=4&pid=37">free porn videos</a> indian free porn videos list http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=4&pid=37 free porn videos list
gay anal sex of <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1026">gay anal sex</a> indian http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1026 gay anal sex italian
oral sex tips ultimate-rush <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=5&pid=44">oral sex tips</a> college http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=5&pid=44 oral sex tips cancun
<a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1020">free porn videos</a> movies free porn videos hardcore http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1020 free porn videos sites
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1027 hot asian girls cancun <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1027">hot asian girls</a> uncensored hot asian girls games
<a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1029">naked teen girls</a> sexy naked teen girls cat http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1029 naked teen girls game
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=4&pid=35">extreme bdsm</a> anime extreme bdsm free http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=4&pid=35 extreme bdsm fucking
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1021 lesbian anal free lesbian anal college <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1021">lesbian anal</a> young
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=5&pid=46">lesbian bondage</a> videos http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=5&pid=46 lesbian bondage first-timers lesbian bondage free
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1033 milfs young milfs cum <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=170&pid=1033">milfs</a> perfect
pussy licking lesbians teen http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1061 pussy licking lesbians brutal <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1061">pussy licking lesbians</a> how to give
http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=83 female masturbation stories mature female masturbation stories clips <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=83">female masturbation stories</a> movie
black and white lesbian cat <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1048">black and white lesbian</a> gallery http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1048 black and white lesbian video
lesbian celebrity kissing picture <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1058">lesbian celebrity kissing</a> asian http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1058 lesbian celebrity kissing girl
http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=85 ejaculation female free video pic ejaculation female free video naked <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=85">ejaculation female free video</a> sexy
http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=87 hot naked babes man <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=87">hot naked babes</a> stars hot naked babes naruto
http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=90 free hardcore xxx porn asian <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=90">free hardcore xxx porn</a> hot free hardcore xxx porn sexy
<a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1051">free gay porn</a> young free gay porn college http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1051 free gay porn young
lesbian hentai video lesbian <a href="http://www.astroamahttp://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1054tori.it/cache/1/hentai-lesbian.html">lesbian hentai video</a> womens http://www.astroamahttp://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1054tori.it/cache/1/hentai-lesbian.html lesbian hentai video screaming
mr big dicks hot chicks young http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1044 mr big dicks hot chicks brutal <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1044">mr big dicks hot chicks</a> horse
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=96">horses dick in a pussy</a> street http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=96 horses dick in a pussy blonde horses dick in a pussy asian
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=88">hot chicks in thongs</a> and mature http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=88 hot chicks in thongs big hot chicks in thongs sexy
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1067 free tit fucking black free tit fucking asian <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1067">free tit fucking</a> young
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=86">hot nude women</a> candid http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=86 hot nude women sexy hot nude women party
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=90">hardcore gay porn</a> free http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=90 hardcore gay porn porn hardcore gay porn sexy
girls licking pussy young http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1061 girls licking pussy mature <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=169&pid=1061">girls licking pussy</a> asian
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=106">black pussy</a> horse http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=106 black pussy brutal black pussy young
free milfs gay http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=100 free milfs mature <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=100">free milfs</a> horse
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=59">wet pussy cum</a> movie wet pussy cum clips http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=59 wet pussy cum brutal
black dick white pussy movie <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=96">black dick white pussy</a> gay http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=96 black dick white pussy blonde
shaved teen pussy young http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=89 shaved teen pussy teen <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=6&pid=89">shaved teen pussy</a> hot
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1055 hot naked black woman black hot naked black woman ultimate-rush <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=172&pid=1055">hot naked black woman</a> video
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=7&pid=127">sexy legs photo</a> black http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=7&pid=127 sexy legs photo patrol sexy legs photo huge
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=7&pid=124">tip on fingering a girl</a> teen tip on fingering a girl small http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=7&pid=124 tip on fingering a girl natural
http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=8&pid=130 huge pussy pic teen <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=8&pid=130">huge pussy pic</a> teen huge pussy pic free
huge black tit and ass pics http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=8&pid=128 huge black tit and ass teen <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=8&pid=128">huge black tit and ass</a> xxx
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1085 great masturbation tip mature great masturbation tip young <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1085">great masturbation tip</a> asian
http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1090 two teen girl kissing blonde <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1090">two teen girl kissing</a> free two teen girl kissing clips
<a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=173&pid=1072">horny housewives</a> girl http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=173&pid=1072 horny housewives mature horny housewives anal
tongue kissing fetish gay <a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1088">tongue kissing fetish</a> horse http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1088 tongue kissing fetish blonde
<a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=7&pid=114">exotic uk lingerie</a> hot http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=7&pid=114 exotic uk lingerie free exotic uk lingerie college
<a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1087">kissing lesbian mature</a> how to give http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=174&pid=1087 kissing lesbian mature brutal kissing lesbian mature clips
<a href="http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=173&pid=1077">my friends hot mom mrs devine</a> horse my friends hot mom mrs devine street http://www.adzu.edu.ph/Forum/v2/viewthread.php?action=attachment&tid=173&pid=1077 my friends hot mom mrs devine amateur
http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=8&pid=135 cuckold interracial movie unusual <a href="http://ieeses.edu.sv/xmb/viewthread.php?action=attachment&tid=8&pid=135">cuckold interracial movie</a> scottish cuckold interracial movie most popular
<a href="http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200181/566/hudil.html">huge dildo fuck</a> super huge dildo fuck super http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200181/566/hudil.html huge dildo fuck big
huge gay black dick search http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200181/565/hudi.html huge gay black dick dating <a href="http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200181/565/hudi.html">huge gay black dick</a> free
<a href="http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200182/570/terle.html">interracial lesbian orgy</a> college interracial lesbian orgy 2 http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200182/570/terle.html interracial lesbian orgy clips
britney spears vagina photo fuck <a href="http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/551/spv.html">britney spears vagina photo</a> super http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/551/spv.html britney spears vagina photo free
<a href="https://gforge.scorec.rpi.edu/tracker/download.php/15/132/17/286/rlisg.html">two girl kissing</a> movie two girl kissing street https://gforge.scorec.rpi.edu/tracker/download.php/15/132/17/286/rlisg.html two girl kissing brutal
http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/547/eseh.html hentai lesbian dick <a href="http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/547/eseh.html">hentai lesbian</a> cat hentai lesbian video
http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/548/xoli.html exotic leather lingerie teen exotic leather lingerie free <a href="http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/548/xoli.html">exotic leather lingerie</a> teen
<a href="http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200181/562/hubt.html">huge black tit movie</a> movies http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200181/562/hubt.html huge black tit movie video huge black tit movie pics
hot blonde anal http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200182/571/tblol.html hot blonde mature <a href="http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200182/571/tblol.html">hot blonde</a> girl
<a href="http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/561/seleg.html">sexy legs and foot</a> big sexy legs and foot cum http://gforge.casil.ucdavis.edu/tracker/download.php/57/350148/200180/561/seleg.html sexy legs and foot patrol
https://gforge.scorec.rpi.edu/tracker/download.php/10/111/16/281/mlr.html male chastity orgasm denial mature <a href="https://gforge.scorec.rpi.edu/tracker/download.php/10/111/16/281/mlr.html">male chastity orgasm denial</a> free male chastity orgasm denial street
<a href="http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200182/567/hdiks.html">huge dicks fucking</a> black huge dicks fucking boob http://gforge.casil.ucdavis.edu/tracker/download.php/48/350112/200182/567/hdiks.html huge dicks fucking real