Retrieve Cyrillic data



Hi all,

I have a table which holds the Translation of my GUI.
I load in Visual Basic 6 the translation from the database and then I update
the caption of the controls.

However, when I have added a Cyrillic translation, ADO returns question
marks (?) for each cyrillic character.

The piece of code looks like this:

Dim cn As New ADODB.Connection
Dim r As New Recordset
cn.Open "Provider=SQLOLEDB.1;Persist Security Info=False;Data
Source=(local);Initial
Catalog=MyDatabase;UID=sa;PWD=;Trusted_Connection=Yes"

Dim str As String
Set r = cn.Execute("SELECT Caption FROM Translation WHERE ModuleName =
N'MyModule' AND LanguageId = 1049 AND ControlId = 91")

MsgBox r.Fields("Caption").Value
str = r.Fields("Caption").Value
MsgBox str

The field Caption in Translation table is nvarchar(4000). Cyrillic data is
properly stored in the table. I can load data from Management Studio.

Do I need to add a special setting to the connection?
Is it a Visual Basic 6 matter?

Thanks in advance,

Alberto.


.



Relevant Pages

  • Re: Clustering - how can I.......
    ... DNS entries that distribute the translation results over the ... That's not really load balancing. ... DNS load balancing is about as simple as you can get, ...
    (comp.os.vms)
  • Re: MessageBox buttons
    ... install a hook, and when the dialog is created, load the button ... translation from resources and change the text of the buttons. ...
    (microsoft.public.vc.mfc)
  • Re: Loading Precreated DirectX Objects
    ... Does anyone know how to load a pre-created Direct X object at say ... D3DXMatrixMultiply matWorld, matWorld, matTemp ... Where do I stick the translation though? ... I have a InitialiseGeometry function and I copied and pasted it ...
    (comp.lang.basic.visual.misc)
  • Re: This make me spit!
    ... > Another load of bollocks knowing that the thread has since been deleted. ... Translation, aelthric doesn't know how to use Google. ...
    (uk.politics.misc)
  • Re: Loading Fee ?
    ... > It weighs 3000 pounds. ... I don't know much (translation: ... The "load" takes five minutes of forklift time. ...
    (alt.marketing.online.ebay)