native2unicode
Converts bytes representation to unicode characters
📝 Syntax
str = native2unicode(bytes, charset)
📥 Input argument
bytes - a uint8 vector
charset - an scalar string or vector characters array.
📤 Output argument
str - an vector characters array.
📄 Description
native2unicode converts an uint8 vector to unicode characters.
str = native2unicode(bytes) converts an uint8 vector to unicode characters (using the native character set of the machine).
str = native2unicode(bytes, charset) converts an uint8 vector to unicode characters (character set charset instead of the native character set).
List of characters set: https://www.iana.org/assignments/character-sets/character-sets.xhtml
📚 Bibliography
ICU library
💡 Example
native2unicode(uint8([149 208 137 188 150 188]), 'SHIFT_JIS')🔗 See also
unicode2native, native2unicode, char.
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?