PDA

View Full Version : mailto url encoding problem




gyokushou
Sep 4, 2008, 07:14 PM
Hi all,
I'm working with mailto: url string to send mail out by my application
and it's works fine until I test it with non-English characters,
my app can't open the mail app if there are some non-English characters in my mail body.
does anyone know how to encode the mailto: url string properly?

thank you.

shou



kainjow
Sep 4, 2008, 09:22 PM
Try using stringByAddingPercentEscapesUsingEncoding: with NSUTF8StringEncoding

gyokushou
Sep 5, 2008, 02:00 AM
it works!
thank you! :)