Geocoder API China - BETA Developer's Guide

Request Encoding

All query parameters in requests against Geocoder API China - BETA resources require encoding in UTF-8. To represent special characters, use the %FF hexadecimal representation.

For example, use searchtext %E5%8C%97%E4%BA%AC%E5%B8%82 to query for 北京市

White spaces can be replaced by the + sign or %20. In this guide, we use + for simplicity.

When using HTML forms to submit queries to the service, use the accept-charset attribute to specify UTF-8 encoding instead of relying on the browser settings for parameter encoding:

<form action="
geocode.xml" method="GET" accept-charset="UTF-8">
<!—-  etc. -->