title: Resource script with localized strings for brcc32
body: <p>In a Delphi XE7 project for building an ocx I have an rc-file with Russian strings for the company name, file description etc. When I open the Properties window of the resulting ocx the Russian strings are not displayed correctly (there are strings of garbage characters due to an incorrect encoding). I have tried to convert the rc-file to Windows-1251, UTF-8 and UTF-16 encodings, then tried to specified the corresponding file encoding via the #pragma code_page directive in the rc-file, then removed #pragma and specified the encoding in the project in the section of the resource compiler. In all cases I changed the VALUE "Translation" string accordingly. Nothing of the above worked for me. What is the correct way of writing and compiling an rc-file in Delphi XE7 such that the localized strings appear correctly in the Properties window?</p>
  
  <p>Note 1. I build the ocx on a build server which Delphi XE7 was simply copied to  (and BDS* environment variables set manually) rather than properly installed from a distributable.</p>
  
  <p>Note 2. For information my rc-file follows (the #pragma version for Windows-1251).</p>
  
  <pre><code>#pragma code_page(1251)
  LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
  
  1 VERSIONINFO
  FILEVERSION 2,0,0,0
  PRODUCTVERSION 2,0,0,0
  FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
  FILEOS VOS__WINDOWS32
  FILETYPE VFT_APP
  
  {
    BLOCK "StringFileInfo"
    {
      BLOCK "041904E3"
      {
        VALUE "CompanyName", "ИмяКомпании\000"
        VALUE "FileDescription", "ИмяМодуля\000"
        VALUE "FileVersion", "2.0.0.0\000"
        VALUE "InternalName", "Tools\000"
        VALUE "LegalCopyright", "Copyright\251 2010-2014\000"
        VALUE "LegalTrademarks", "\000"
        VALUE "OriginalFilename", "Tools.ocx\000"
        VALUE "ProductName", "ИмяПродукта\000"
        VALUE "ProductVersion", "2.0.0.0\000"
        VALUE "Comments", "No Comments\000"
      }
    }
  
    BLOCK "VarFileInfo"
    {
      VALUE "Translation", 1049, 1251
    }
  }
  </code></pre>