warning C4819: How to find the character that has to be saved in unicode?

后端 未结 5 1862
太阳男子
太阳男子 2021-01-30 22:57

I have seen the following warning recently through my VS2010.

Warning 21 warning C4819: The file contains a character that cannot be represented in the current code pag

5条回答
  •  悲&欢浪女
    2021-01-30 23:50

    I met this problem in my project and tried to modify all non-unicode characters. But I had to give up and found a another way, as there were too many files with such problem (even though all of them are in comments).

    Then I found a quick way to fix this by setting 'system locale'.

    Control Panel -> Clock,Language,and Region -> Region and Language -> 
    Administrative -> Language for non-Unicode programs -> Change system locale -> English
    

    I think this could fix your problem if your 'system locale' is not English.

    https://stackoverflow.com/a/37871883/3148107

提交回复
热议问题