title: Wix string with characters not available in database 's codepage although codepage is set
body: <p>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:</p>
  
  <pre><code>Error   6   A string was provided with characters that are not available in the specified database code page '1252'. Either change these characters to ones that exist in the database's code page, or update the database's code page by modifying one of the following attributes: Product/@Codepage, Module/@Codepage, Patch/@Codepage, PatchCreation/@Codepage, or WixLocalization/@Codepage.
  </code></pre>
  
  <p>The first of these occurs on the following line:</p>
  
  <pre><code>&lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"
           Manufacturer="(株)テイコク" /&gt;
  </code></pre>
  
  <p>And I assume that wix is unhappy because of the Japanese characters. Yet in the product declaration I am setting the Codepage to 932, which should be correct for Japanese:</p>
  
  <pre><code>&lt;Product Id="*" Codepage="932" Language="1041"
           Name="各務原市農地支援・畑地管理システムインストーラー" Version="1.1.0.0"
           Manufacturer="(株)テイコク" UpgradeCode="PUT-GUID-HERE"&gt;
  </code></pre>
  
  <p>I really don't get what the error is or how to resolve it, especially since this worked fine a few days ago...</p>
  
  <p>Here's the full Wix code in case it's needed:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:net="http://schemas.microsoft.com/wix/NetFxExtension"&gt;
    &lt;Product Id="*" Codepage="932" Language="1041" Name="各務原市農地支援・畑地管理システムインストーラー" Version="1.1.0.0" Manufacturer="(株)テイコク" UpgradeCode="PUT-GUID-HERE"&gt;
      &lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Manufacturer="(株)テイコク" /&gt;
  
      &lt;UIRef Id="WixUI_Minimal" /&gt;
      &lt;UIRef Id="WixUI_ErrorProgressText" /&gt;
  
      &lt;PropertyRef Id="NETFRAMEWORK40CLIENT" /&gt;
      &lt;Condition Message="インストールするには.NETフレームワーク4.0が必要です。フレームワークをインストールしてからもう一度インストーラーを実行してください。"&gt;
        &lt;![CDATA[Installed OR NETFRAMEWORK40CLIENT]]&gt;
      &lt;/Condition&gt;
  
      &lt;MajorUpgrade DowngradeErrorMessage="もっと新しいバージョンが既にインストールされています。" /&gt;
      &lt;MediaTemplate EmbedCab="yes" /&gt;
  
      &lt;Feature Id="ProductFeature" Title="MapManagerInstaller" Level="1"&gt;
        &lt;ComponentGroupRef Id="ProductComponents" /&gt;
      &lt;/Feature&gt;
  
      &lt;Icon Id="MapManager.exe" SourceFile="MapManager.exe" /&gt;
    &lt;/Product&gt;
  
    &lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="ProgramFilesFolder"&gt;
          &lt;Directory Id="INSTALLFOLDER" Name="各務原市農地支援・畑地管理システム" /&gt;
        &lt;/Directory&gt;
        &lt;Directory Id="DesktopFolder" Name="Desktop"&gt;
        &lt;/Directory&gt;
        &lt;Directory Id="ProgramMenuFolder" Name="Programs"&gt;
          &lt;Directory Id ="ProgramMenuDir" Name="各務原市農地支援・畑地管理システム"&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
    &lt;/Fragment&gt;
  
    &lt;Fragment&gt;
      &lt;ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"&gt;
        &lt;Component Id="MapManagerProgramFiles" Guid="*"&gt;
          &lt;File Id="MapManagerExe" Name ="MapManager.exe"&gt;
            &lt;Shortcut Id="MapManagerDesktopShortcut" Directory="DesktopFolder" Name="各務原市農地支援・畑地管理システム" WorkingDirectory="INSTALLFOLDER" Icon="MapManager.exe" IconIndex="0" Advertise="yes" /&gt;
            &lt;Shortcut Id="MapManagerStartMenuShortcut" Directory="ProgramMenuDir" Name="各務原市農地支援・畑地管理システム" WorkingDirectory="INSTALLFOLDER" Icon="MapManager.exe" IconIndex="0" Advertise="yes" /&gt;
          &lt;/File&gt;
          &lt;File Id="AxInterop.SisLib" Name="AxInterop.SisLib.dll" /&gt;
          &lt;File Id="Interop.SisLib" Name="Interop.SisLib.dll" /&gt;
          &lt;File Id="ClassMap" Name="ClassMap.dll" /&gt;
          &lt;File Id="SuidenManager" Name="SuidenManager.dll" /&gt;
          &lt;File Id="HatachiManager" Name="HatachiManager.dll" /&gt;
          &lt;File Id="MapManagerShared" Name="MapManagerShared.dll" /&gt;
          &lt;RemoveFolder Id="INSTALLDIR" On="uninstall" /&gt;
        &lt;/Component&gt;
        &lt;Component Id="DesktopShortcut" Guid="*"&gt;
          &lt;Shortcut Id="DesktopShortcut" Name="各務原市農地支援・畑地管理システム" Target="[INSTALLFOLDER]MapManager.exe" WorkingDirectory="INSTALLFOLDER" /&gt;
          &lt;RemoveFolder Id="DesktopFolder" On ="uninstall" /&gt;
          &lt;RegistryValue Root="HKCU" Key="Software\MapMax\各務原市農地支援・畑地管理システム" Type="string" Value="" KeyPath="yes" /&gt;
        &lt;/Component&gt;
        &lt;Component Id="ProgramMenuDir" Guid="*"&gt;
          &lt;RemoveFolder Id="ProgramMenuDir" On ="uninstall" /&gt;
          &lt;RegistryValue Root="HKCU" Key="Software\MapMax\各務原市農地支援・畑地管理システム" Type="string" Value="" KeyPath="yes" /&gt;
        &lt;/Component&gt;
      &lt;/ComponentGroup&gt;
    &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>Replacing every single Japanese character with a character from code page 1252 works fine. Seems that Wix is ignoring the code page specification and using the default 1252 one instead...</p>
  
  <p>I've also tried this in a new wix setup project and am getting the same problem.</p>
  
  <p>Any ideas?</p>