Files in PureCM workspace have invalid encoding

I’ve created a PureCM workspace for web site project. After starting up the site it turns out that all Polish characters are invalid. The site is made in UTF-8 and all files contains texts encoded this way.

The browser could not identify what kind of encoding is used. I’ve tried with ISO-8859-2 which is another possible standard for Polish characters.

No effects.

I’ve checked the file types reported by PureCM. For most of C# code files it was “text/plain” which we configured in repository with following options:

  • File Type: text
  • Selected “Disable writing of unicode identifier”
  • Encoding: System Encoding

What does “System Encoding” mean for PureCM?

It turns out that it is a setting for “non-Unicode programs” which can be found in system’s Control Panel / Regional and Language Options / Advanced.

I’ve created the workspace at new PureCM installation at computer running English Windows version and thas setting was “English” by default.

To solve the problem I did following steps:

  1. Opened Control Panel
  2. Opened Regional and Language Options
  3. Clicked to Advanced tab
  4. Selected “Polish” as Language for non-Unicode programs.
  5. Rebooted the computer.
  6. Deleted the PureCM workspace.
  7. Created PureCM workspace.

Leave a Reply