UNICODE strings

  • Thread starter Thread starter Petr Pavelka
  • Start date Start date
P

Petr Pavelka

Hello,

I have an sheet with 3 columns (ID, english text, chinese text).

In a loop i go through all the rows and try to get english and chinese text
values using Str() fuction.

It works good with english text but not with thechinese one (it looks like
"????").

Any ideas ?

Thanks.
 
Sorry, I am the beginner.

Shall I use something like:

CStr(Range("C3").Value)

This doesn't solve my problem. I need to get numeric (byte) representation
of the chinese string from cell 'C3'.

Thanks.
 
Not sure what you are looking for: If what you want is the unicode numbers
corresponding to the unicode string then assign it to a byte array.

Dim arrBytes() As Byte

arrBytes=range("C3").value

This will give you two array elements for each character. the two array
elements contain the two Unicode bytes.


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.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

Back
Top