For 2 bytes characters, it's straightforward \u1234
. But if I want to encode longer characters, like U+1F3C3 (snowboarder) with \u1F3C3
, the string just doesn't get translated properly.
How do I correctly encode unicode characters which are longer than 2 bytes?