Wix string with characters not available in database 's codepage although codepage is set

后端 未结 2 742
后悔当初
后悔当初 2020-12-18 01:11

I have a Wix installer project in VS2012, which compiled just fine last time I used it (about a week ago). I went back today and get about 15 code page errors:



        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-18 01:34

    I had the same problem, but with a "è" char (which is include in CP-1252, so default culture should have worked) . Replacing it by "e" patch the problem but that was not a clean solution.

    What really work is adding a .wxl file codepage

    
    
    
    

    also precising 1252 worked

    
    
    
    

    Then you specify the culture to build according to Wix documentation "Specifying Cultures to Build". It need to be the same culture written in the .wxl file.

    enter image description here

    Building the project in VS2010 now work.

    EDIT: Just adding into the .wxs file solved the problem too.

提交回复
热议问题