0

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).

lucasart
  • 1,643
  • 1
  • 20
  • 29

1 Answers1

-2

I ended up using @ParagBafna's suggestion, which is using this code ConvertUTF, from this link. It works just fine.

lucasart
  • 1,643
  • 1
  • 20
  • 29
  • 1
    So what's the solution? Link doesn't contain any info :/ – BenB May 25 '13 at 21:10
  • Why down-vote my answer when the link is not under my responsibility? Why not simply ask the author of the code mentioned above, which is so easily available though a basic Google search: https://stackoverflow.com/users/944634/parag-bafna – lucasart Feb 04 '18 at 01:27
  • Not to pile on, but the reason for the downvote is that your answer didn’t really provide a technical “answer” to OP question, you simply provided a link to something – m0j0hn Dec 06 '22 at 19:26