I saw the other questions about the subject but all of them were missing important details:
I want to convert \u00252F\u00252F\u05de\u05e8\u05db\u05d6 to utf8. I understand that you look through the stream for \u followed by four hex which you convert to bytes. The problems are as follows:
- I heard that sometimes you look for 4 bytes after and sometimes 6 bytes after, is this correct? If so, then how do you determine which it is? E.g. is
\u00252F4 or 6 bytes? - In the case of
\u0025this maps to one byte instead of two (0x25), why? Is the four hex supposed to represent utf16 which i am supposed to convert to utf8? - How do I know whether the text is supposed to be the literal characters
\u0025or the unicode sequence? Does that mean that all backslashes must be escaped in the stream? - Lastly, am I being stupid in doing this by hand when I can use iconv to do this for me?
\u00252Falways one single character, or is it the character U+0025 followed by2(U+0032) followed byF(U+0046)? "Is the four hex supposed to represent utf16 which i am supposed to convert to utf8?" Again, how can we know? Where does this data come from? - R. Martinho Fernandes\u, exactly 4 hexadecimal digits must follow the\uand are considered to make up one UTF-16 code unit. - R.. GitHub STOP HELPING ICE\u00252Fhow can i determine whether it is\u0025+2F or\u00252F? - chacham15