软件多语言支持问题

    技术2022-05-11  89

    如果是win32程序,首先将源代码文件保存为unicode编码,如果有资源文件(*.rc),也保存为unicode格式。并且在编译前,加入_UNICODE和UNICODE。

    如果是HTML/XML格式文件,首先将原文件保存为unicode编码,再设置content或encoding属性为utf-8

    如果系统不支持unicode,再考虑MBCS,包括GB和GBK等。

    附:

    Visual C++ 6.0 支持unicode的设置1.在 Project Settings -> C/C++ -> Preprocessor definitions 中加入 _UNICODE和UNICODE;2.在 Project Settings -> Link -> Output -> Entry Point 中填入 wWinMainCRTStartup;

     

    最新回复(0)