Files in PureCM workspace have invalid encoding

November 14, 2008

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.

PureCM Windows Client does not open windows

June 12, 2008

Today I found PureCM Client refusing to open Submit Changeset window without any reason. The only effect of issuing Submit command was new entry at system’s taskbar.

It showed title “Submit” but without any context menu nor possibility to play with.

Finaly I found the method to force PureCM to behave as requested. It turned out that it stores last positions and states of any window open. Somehow entries for my missing window become damaged or invalid.

I found the registry key which seemed to hold the data:

HKEY_CURRENT_USER\Software\PURECM Client\Dlgs

and “fixed” it by deleting it. After reopening PureCM client everything went back to normal.