ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   UNICODE strings (https://www.excelbanter.com/excel-programming/315512-unicode-strings.html)

Petr Pavelka

UNICODE strings
 
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.



Charles Williams

UNICODE strings
 
try Cstr() rather than Str()


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Petr Pavelka" wrote in message
...
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.





Petr Pavelka

UNICODE strings
 
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.

"Charles Williams" wrote in message
...
try Cstr() rather than Str()


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Petr Pavelka" wrote in message
...
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.







Charles Williams

UNICODE strings
 
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

"Petr Pavelka" wrote in message
...
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.

"Charles Williams" wrote in message
...
try Cstr() rather than Str()


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Petr Pavelka" wrote in message
...
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.










All times are GMT +1. The time now is 08:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com