diff --git a/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/roRichTextBox.cs b/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/roRichTextBox.cs index 77f6da37..cebc89fc 100644 --- a/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/roRichTextBox.cs +++ b/PROMS/ReferencedObjects/LibSource/ctlXMLEditLib/roRichTextBox.cs @@ -32,7 +32,7 @@ namespace ctlXMLEditLib public void InsertSymbol( int symbcode) { int position = this.SelectionStart; - string sym = string.Format(symbcode < 256 ? "\'{0:X2}" : @"\u{0}", symbcode); + string sym = symbcode < 256 ? ((char)symbcode).ToString() : string.Format(@"\u{0}", symbcode); this.SelectedRtf = RtfPrefixForSymbols + sym + @"}"; Select(position, -1); Select(position + 1, 0);