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).
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).
I ended up using @ParagBafna's suggestion, which is using this code ConvertUTF, from this link. It works just fine.