China-Spiner / ibus-sogoupycc

Automatically exported from code.google.com/p/ibus-sogoupycc
1 stars 1 forks source link

urldecode貌似已经不需要了 #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
执行sgccget.sh的时候发现显示的有问题
检查ajax输出发现似乎只需要unescape就可以了
去掉以后执行 返回正常

--- sgccget.sh  2009-11-18 09:50:36.000000000 +0800
+++ /usr/share/ibus-sogoupycc/sgccget.sh        2009-11-18 
13:57:59.000000000 +0800
@@ -16,7 +16,7 @@
 else 
if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode
(((c&31)<<6)|(c2&63));
 i+=2;}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);
 string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}retu
rn string;}
-print(urldecode(unescape(ime_query_res)));
+print(unescape(ime_query_res));
 !
 } | while read i; do
                if echo $i | fgrep ':' 1>/dev/null 2>/dev/null; then

Original issue reported on code.google.com by Jay.W.Xie on 18 Nov 2009 at 6:00

GoogleCodeExporter commented 9 years ago
未能重现

Original comment by arcpp.zju@gmail.com on 15 Feb 2010 at 1:40