MS ODBC encoding issue
    Sam Hu 
    samhudotsamhu at gmail.com
       
    Tue Dec  4 19:29:50 PST 2012
    
    
  
On Tuesday, 4 December 2012 at 10:05:16 UTC, Nathan M. Swan wrote:
>
> I've never used ODBC before, but a quick scan of the MSDN docs 
> suggests that you should use SQL_C_WCHAR instead, maybe using 
> some D wstring functions too.
>
> BTW, convert sql.ptr -> std.string.toStringz(sql); this is good 
> practice, though I'm not sure it's your problem.
>
> NMS
Appreciated the prompt help!Unfortunately I've not fixed the 
issue yet.Changing to SQL_C_WCHAR and contained the result value 
by wchar* does not help much.
    
    
More information about the Digitalmars-d-learn
mailing list