From a29f374023d7ca360dbb049d1945b69bf8245893 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 24 Jun 2016 16:14:25 +0000 Subject: [PATCH] Move the line of code that replaces a backslash with the \u8596? Symbol to the top of ReplaceUnicode B2016-151 --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 8d431fbe..3f76a867 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -226,6 +226,7 @@ namespace VEPROMS.CSLA.Library private string ReplaceUnicode(string s2, bool DoCaret) { string orig = s2; + s2 = s2.Replace(@"\", @"\u9586?"); // convert backslashes to a backslash symbol s2 = s2.Replace("`", @"\'b0"); // convert backquote to degree - left over from DOS days. s2 = s2.Replace("\xf8", @"\'b0"); // convert \xf8 to degree. s2 = s2.Replace("\xa0", @"\u160?"); // hardspace @@ -273,8 +274,6 @@ namespace VEPROMS.CSLA.Library //if the dash is preceeded byte a token remove the space following the token s2 = Regex.Replace(s2, @"(\\[^ \\?]*) \-", @"$1\u8209?"); s2 = s2.Replace("-", @"\u8209?"); - // convert backslashes to a backslash symbol - s2 = s2.Replace(@"\", @"\u9586?"); return s2; } private string FixUnitROs(string val)