应用/EP时,我们是否能够获取以Unicode编码的预处理文件? [英] Are we able to get preprocessed file encoded in Unicode when /EP is applied?

查看:86
本文介绍了应用/EP时,我们是否能够获取以Unicode编码的预处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道,我们可以添加/EP来让Compiler(CL.exe)生成预处理文件,即使您的原始源文件是Unicode,CL.exe似乎总是以MBCS格式生成预处理文件.
是否可以获取以Unicode编码的预处理文件?如果是,如何实现?

As you know, we can add /EP to let Compiler(CL.exe) generate preprocessed file, it seems CL.exe always generates preprocessed file in MBCS format, even if your original source file is Unicode.
Are we able to get preprocessed file encoded in Unicode? if yes, how to make it happen?

推荐答案

不幸的是,使用VC编译器无法做到这一点-预处理输出仅是ANSI.当然,这使它无法用作Unicode文本文件的通用预处理器.
Unfortunately, there is no way to do this with the VC compiler - preprocessed output is ANSI only. Of course, this makes it useless as a generic preprocessor for Unicode text files.


这篇关于应用/EP时,我们是否能够获取以Unicode编码的预处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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