mailto url encoding problem

Discussion in 'iOS Programming' started by gyokushou, Sep 4, 2008.

  1. gyokushou macrumors newbie

    Aug 25, 2008
    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.

  2. kainjow Moderator emeritus


    Jun 15, 2000
    Try using stringByAddingPercentEscapesUsingEncoding: with NSUTF8StringEncoding
  3. gyokushou thread starter macrumors newbie

    Aug 25, 2008

Share This Page