Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 I am getting problem in fetching data using C++

Author  Topic 

ketu0001
Starting Member

11 Posts

Posted - 2007-05-21 : 08:39:45
Hi All,

I am getting problem in fetching data from SQL using C++ program.
How to Fetch SQL Unicode characters?
I am using ODBC driver calls in C++ to fetch SQL data.
It is working fine with character data.
But for Unicode data it displays “????” instead of data.
Can anybody please help?

Regards
Ketaki

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-05-21 : 08:41:38
displays where? you have to have proper codepage to display unicode chars.
and they must also be stored in nvarchar, nchar or ntext datatype column.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

ketu0001
Starting Member

11 Posts

Posted - 2007-05-21 : 09:03:43
Thanks for help.
" ûôü " this is the data I am fetching from SQL using ODBC driver and C++ code.
I am printing it on the screen, It prints "??? " instead of "ûôü".

Regards
Ketaki
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-05-21 : 09:54:26
well you have to print it with the correct localization setting.
i don't know about c++ to be helpfull there...

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -