Can anybody tell me, what is the difference between OctetString and UTF8-String?
I think, String in C is array of ASCII.
There is no difference for ASCII String between the two formats.
I'm not sure about OctetStrings, but UTF8 strings are exactly the same as char* strings if you're using only English characters. If you start using DBCS or some high ASCII letters, then UTF8 starts to use multiple bytes to represent those characters.
No any String type in the C language. Common term C string is a name for conventional array of char with zero byte '\0' terninator. No any OctetString in C too.
In text data transmission and encoding area octet string is a chain of 8-bit unsigned char (in C terms). UTF-8 is a name of a Unicode text encoding standard (to represent Unicode characters as octet strings), see:
Thanks. Uft-8 String is as same as char* in C for ASCII array.
I am implementing a protocol. The "network name" should be tranferred as OctetString. What should I do?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.