In Obj-C, how to convert\u20000
to this final string:"%F0%A0%80%80"
(which will be used to build an URL)?
FYI: according to this page,\u20000
=0x00020000
in UTF-32 (hex) or0xF0 0xA0 0x80 0x80
in UTF-8 (hex).
In Obj-C, how to convert\u20000
to this final string:"%F0%A0%80%80"
(which will be used to build an URL)?
FYI: according to this page,\u20000
=0x00020000
in UTF-32 (hex) or0xF0 0xA0 0x80 0x80
in UTF-8 (hex).
I ended up using @ParagBafna's suggestion, which is using this code ConvertUTF, from this link. It works just fine.