convert to an array of octet?

G

Guoqi Zheng

Dear sir,

I am not fully understand the meaning of octet. For example, if I have a
string contains unicode data of some Chinese characters, how can I convert
it to an array of octet?

Thanks in advanced.

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
 
K

Ken Tucker [MVP]

Hi,

From what i can tell octet is another word for byte. Try something like
this.
http://www.webopedia.com/TERM/O/octet.html

Dim strTest As String = "convert to octet"

Dim arOctet() As Byte

arOctet = System.Text.Encoding.Default.GetBytes(strTest)



Ken

-------------------


Dear sir,

I am not fully understand the meaning of octet. For example, if I have a
string contains unicode data of some Chinese characters, how can I convert
it to an array of octet?

Thanks in advanced.

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top