diff --git a/PROMS/VEPROMS User Interface/frmPSI.cs b/PROMS/VEPROMS User Interface/frmPSI.cs index 6b4c914c..2eb5cc65 100644 --- a/PROMS/VEPROMS User Interface/frmPSI.cs +++ b/PROMS/VEPROMS User Interface/frmPSI.cs @@ -62,7 +62,8 @@ namespace VEPROMS tb.BorderStyle = BorderStyle.FixedSingle; tb.Enter += new System.EventHandler(this.FieldStepRTB_Enter); // see if config has data for this field, i.e. search for the 'name' - string val = procConfig.GetValue("PSI", fld.name); + // B2018-057 Replace non-breaking hyphen with hyphen. + string val = procConfig.GetValue("PSI", fld.name).Replace("\\u8209?", "-"); DisplayText dt = new DisplayText(val, new VE_Font("Arial", 10, E_Style.None, 12), false); StringBuilder sb = new StringBuilder(); sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}"); @@ -137,7 +138,8 @@ namespace VEPROMS if (oldval != newval) { isDirty = true; - procConfig.SetValue("PSI", fld.name, newval); + // B2018-057 Replace non-breaking hyphen with hyphen. + procConfig.SetValue("PSI", fld.name, newval.Replace("\\u8209?","-")); } } else if (fld.type.ToLower() == "logical")