Relative Content

Tag Archive for cfreertos

C String encoding UTF8

I know this question has been answered to most of the languages but i have not found a solution for C or i am misunderstanding something.
I have declared a variable like unsigned char *str=(unsigned char *)”你好”;One of my requirements is to convert this string to a utf8 encoded hexadecimal string, such as “你好”->”E4BDA0E5A5BD”.