Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello people . i am working on my project . i have to send words to the server application via my android application . after i send them , i will able to search some survey and research and return these information to the android user. my users use "Persian" characters to search their appropriate subjects.

I found that when i send them (persian words) to the server ,it (server) cant recognize them correctly ! it works on a stream of " ???? " instead of correct words ! it just has this problem with Persian words which are sent from android app not English words . I have never tried other languages but i think it also has this problem with them .i think my mobile device has different code for Persian characters.

What do you think and how should i solve my problem .
thanks in advance
Mahmud Shahrokni
Posted
Updated 5-May-15 1:42am
v2
Comments
Sergey Alexandrovich Kryukov 5-May-15 11:45am    
Now exactly do you send your request?
—SA
seyed mahmud shahrokni 6-May-15 11:13am    
what do you mean ?

1 solution

Try this method:

HttpUtility.UrlEncode('سلام');

and add system.web from refrences to your project. (C# solution)
 
Share this answer
 
Comments
seyed mahmud shahrokni 5-May-15 8:46am    
your code doesn't work dear Behnood !! they are appeared like this "%3f%3f%3f"
داداش به زبون خودمون بهت بگم کار نمیکنه ! این قسمت خارجی کامنت رو واس بقیه زبون نفهمای خارجی نوشتنم! یکم بیشتر فک کن . متنی که بالا نوشتمو با دقت خوندی یا سر سری رد شدی ؟!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900