有一个文件,写的全是字母,但是unicode方式存储的
我想一行一行读这个文件
读完一行,把它转换成单字节的方式
有这样的api吗?
我想一行一行读这个文件
读完一行,把它转换成单字节的方式
有这样的api吗?
解决方案 »
- 有没朋友在单文档程序中使用过DirectInput??
- 请教做IE插件要学什么?
- 用Atl开发的windows service访问数据库,能够连接,执行select却得不到返回数据,这可能是怎么回事?
- 文件下载时候直接下载连接不上,从ie打开连接能下载,为何?
- 请问如何绘制地震剖面中的变密度图,既根据数据值的大小如何分配颜色值
- 利用vc如何取得word文档中多个表格中的第二个?
- 请问各位大虾,通常用哪些调试工具?!用过DevPartner吗?!
- VC++.net 开发的vc++应用程序如何制作安装文件,请高手指教!谢谢
- 求对话框托盘程序!(要求能响应托盘区鼠标动作,因为我无法给我的对话框托盘程序加入响应函数)
- ======================各位VC同胞,帮忙呀! up有分!=============
- WinPcap 是一个什么软件,我装上了一点反应也没有?
- 在sybase编写存储过程时怎样取字符串的长度?
WideCharToMultiByte才是将Unicode字符串转成普通的字符串
The following functions are used with character sets. Function Description
GetTextCharset
Retrieves a character-set identifier for the font that is currently selected into a specified device context. GetTextCharsetInfo
Retrieves information about the character set of the font that is currently selected into a specified device context. IsDBCSLeadByte
Determines whether a character is a lead byte. IsDBCSLeadByteEx
Determines whether a character is a lead byte. IsTextUnicode
Determines whether a buffer is likely to contain a form of Unicode text. MultiByteToWideChar
Maps a character string to a wide-character (Unicode) string.
TranslateCharsetInfo Translates based on the specified character set, code page, or font signature value. WideCharToMultiByte
Maps a wide-character string to a new character string.