Select to view content in your preferred language

Query chinese character wih proxy page problem

635
1
04-15-2012 11:27 PM
ClementLau
Emerging Contributor
I have a QueryTask with proxy page to query street name.
if query.text = [english street name], can find street name without problem.
if query.text = [chinese character street name], error occur "[RPC Fault faultString="Error #2032" faultCode="null" faultDetail="null"]".

On the other hand, when i remove proxyURL property from QueryTask, both english and chinese can find.
But in my situation, i must user proxyURL property for security issue.

Anyone can help?
Tags (2)
0 Kudos
1 Reply
IvanBespalov
Frequent Contributor
Clement,
query task parameters are request query strings.

Take a look to Example usage tag in this help page.

try it:
encodeURIComponent()
query.text = encodeURIComponent(chinese character street name)
0 Kudos