在打印时它在c中给出了非ascii值 [英] while printing it gives non ascii values in c

查看:72
本文介绍了在打印时它在c中给出了非ascii值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在C中使用ADO连接. (vc ++ 6.0)

Hi all,

i am using the ADO connection in the c. (vc++ 6.0)

printf("%s",(char*)(_bstr_t)pRecordset->Fields->GetItem ("MYcoulmnName")->Val);



我尝试从数据库获取数据.
数据很好.
但是当我尝试读取具有空格的数据时,它给出了
非ASCII字符而不是空格.
什么会是问题..



i try to get the data from the db .
The datas are coming fine.
but while i am try to read the data which having the space its giving the
non ascii charactors instead of space.
what will be the issue..

推荐答案

对不起,我不能这样做

谢谢
尼基尔(Nikhil)
sry i cant do that

Thanks
Nikhil


这篇关于在打印时它在c中给出了非ascii值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆