Home All Groups Group Topic Archive Search About
Author
25 May 2009 11:47 AM
hon123456
Dear all,
            I have selected a unicode string from database. In SQL
server query analyzer, I can see
the field descripion is VARISTOR® where circle R is unicode. But when
I type the recordset value in VB  like ? RST("description"), it
becomes VARISTORR where the circle R is replaced by
R. How to solved that. I want to keep the original unicode data to
show in VB. How can I do that?

Thanks

Author
26 May 2009 5:05 AM
Bill McCarthy
Hi Peter,

It might just be VB6's output window. Most of VB6 Ui stuff is ANSI, you have
to go 3rd party to try to get unicode.
Make sure the string is still unicode, by checking the ASCW value of the
relevant part, eg
For i = 1 To Len(s)
  Debug.Print Hex(AscW(Mid(s, i, 1)))
Next i







"hon123456" <peterhon***@yahoo.com.hk> wrote in message
news:bb9912db-0990-41c5-b3a2-84873769df58@w31g2000prd.googlegroups.com...
Dear all,
            I have selected a unicode string from database. In SQL
server query analyzer, I can see
the field descripion is VARISTOR® where circle R is unicode. But when
I type the recordset value in VB  like ? RST("description"), it
becomes VARISTORR where the circle R is replaced by
R. How to solved that. I want to keep the original unicode data to
show in VB. How can I do that?

Thanks