unicode2native

Converts unicode characters representation to bytes

๐Ÿ“ Syntax

  • bytes = unicode2native(str, charset)

๐Ÿ“ฅ Input argument

  • str - an scalar string or vector characters array.

  • charset - an scalar string or vector characters array.

๐Ÿ“ค Output argument

  • bytes - a uint8 vector

๐Ÿ“„ Description

unicode2native converts unicode characters to an numeric array.

bytes = unicode2native(str) converts unicode characters to an numeric array (the native character set of the machine).

bytes = unicode2native(str, charset) converts unicode characters to an numeric array (character set charset instead of the native character set).

List of characters set: http://www.iana.org/assignments/character-sets/character-sets.xhtml

๐Ÿ“š Bibliography

ICU library

๐Ÿ’ก Example

R = unicode2native('็‰‡ไปฎๅ', 'SHIFT_JIS')

๐Ÿ”— See also

native2unicode, char.

๐Ÿ•” History

Version
๐Ÿ“„ Description

1.0.0

initial version

Last updated

Was this helpful?