[Geomoose-users] "utf8 to ucs2 conversion" problem, Can you tell me where to change url "encode" and "decode"?

Leopard cnzang at gmail.com
Tue Mar 24 04:46:36 EDT 2009


Dear friend

I hava change the itemquery using PHP model.but when I use Chinese char to
query , I have a problem as follow:

22)Invalid argument: utf8 to ucs2 conversion failed on this string:
REDIRECT_QUERY_STRING=map=/ms4w/apps/GeoMOOSE/petrochina/itemquery.map&qitem=&layer=building&buffer=&highlight=&qstring=&mode=nquery&id=\xb3\xc6&
[Mon Mar 23 17:34:09 2009] [error] [client 192.168.2.19] (22)Invalid
argument: couldn't create child process: 22: php-cgi.exe, referer:
http://192.168.2.200:8081/
[Mon Mar 23 17:34:09 2009] [error] [client 192.168.2.19] (22)Invalid
argument: couldn't spawn child process: C:/ms4w/Apache/cgi-bin/php-cgi.exe,
referer: http://192.168.2.200:8081/

CODE:
<div id="CustomForms">
 <div id="buildingsearch">
     <font color="black"><b>ËÑË÷½¨ÖþÎï:</b></font><br/>

      <input type="text" name="id">
     <input type="submit" value="²éѯ">
     <input type="hidden" name="shape" value="poly"/>
     <input type="hidden" name="map"
value="/ms4w/apps/GeoMOOSE/petrochina/itemquery.map"/>
     <input type="hidden" name="layer" value="Building"/>
     <input type="hidden" name="buffer" value="-1"/>
      <input type="hidden" name="highlight" value="true"/>
     <input type="hidden" name="qitem" value="NAME"/>
     <input type="hidden" name="mode" value="nquery"/>
     <input type="hidden" name="layer" value="building"/>
      <input type="hidden" name="output" value="html"/>
     <br><i>ÇëÊäÈ뽨ÖþÎïÃû³Æ<i/>
 </div>

Someone tell me that I should change "id" from Chinese charset(gb2312) to
UCS2 in url,but I don't know where and how to change the code ?
Can you tell me ?

thanks!
 --
Leopard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20090324/727e8767/attachment.html


More information about the Geomoose-users mailing list