An existing Work Item template get deleted after importing a new Work Item template
I am using RTC 4.0 to create and use work item templates.
I created a couple of templates, which contain Chinese chars.
Now I want to rename templates.
To achieve this, I export the template as XML, and then I use Notepad to change the template's name.
I then use the Template import to re-import the template into RTC.
However, I found that in some cases, some templates were deleted.
Is this a bug?
I created a couple of templates, which contain Chinese chars.
Now I want to rename templates.
To achieve this, I export the template as XML, and then I use Notepad to change the template's name.
I then use the Template import to re-import the template into RTC.
However, I found that in some cases, some templates were deleted.
Is this a bug?
One answer
I finally found the origin of my issue: the currently supported encoding for XML Templates is UTF-8 no BOM (which I verified is the encoding in the RTC exported template).
if I use Notepad++ to edit and save the file - encoding remains UTF-8 no BOM - and issue is not present.
if I use Notepad to edit and save the file - encoding is changed by Notepad to UTF-8 which seems to cause the issue.
So the workaround to my issue is to preserve the UTF-8 no BOM encoding by NOT using Notepad and rather use Notepad++.
Also note that Ability to import work item templates with XML encoded as UTF-8 BOM (212753)
should improve such behavior.
if I use Notepad++ to edit and save the file - encoding remains UTF-8 no BOM - and issue is not present.
if I use Notepad to edit and save the file - encoding is changed by Notepad to UTF-8 which seems to cause the issue.
So the workaround to my issue is to preserve the UTF-8 no BOM encoding by NOT using Notepad and rather use Notepad++.
Also note that Ability to import work item templates with XML encoded as UTF-8 BOM (212753)
should improve such behavior.