In Obj-C, how to convert\u20000to this final string:"%F0%A0%80%80"(which will be used to build an URL)?
FYI: according to this page,\u20000=0x00020000in UTF-32 (hex) or0xF0 0xA0 0x80 0x80in UTF-8 (hex).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I ended up using @ParagBafna’s suggestion, which is using this code ConvertUTF, from this link. It works just fine.