From 33cc6508719e18c6bc5736d4e35c25ac66bd7afa Mon Sep 17 00:00:00 2001 From: Paul Larsen Date: Mon, 9 Mar 2026 14:26:19 -0400 Subject: [PATCH] B2026-025_Unicode_removed_from_RO_menu_titles_in_treeview --- .../LibSource/RODBInterface/RODBInterface.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs index d68d0c14..d4f5b170 100644 --- a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs +++ b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs @@ -2146,7 +2146,7 @@ namespace RODBInterface char[] chrAry = xmlstr.ToCharArray(); foreach (int chr in chrAry) { - if (chr > 160) + if (chr > 166) { xmlstrTmp.Append($"\\u{(int)chr}?"); } @@ -2155,7 +2155,7 @@ namespace RODBInterface xmlstrTmp.Append((char)chr); } } - string strUpdate = "UPDATE " + ro.GetAttribute("Table") + " SET Info = '" + xmlstrTmp + "'"; + string strUpdate = "UPDATE " + ro.GetAttribute("Table") + " SET Info = '" + xmlstrTmp.ToString() + "'"; if (movedRO) { VlnXmlElement parent = (VlnXmlElement)ro.ParentNode; @@ -2203,7 +2203,7 @@ namespace RODBInterface char[] chrAry = xmlstr.ToCharArray(); foreach (int chr in chrAry) { - if (chr > 160) + if (chr > 166) { xmlstrTmp.Append($"\\u{(int)chr}?"); } @@ -2236,13 +2236,13 @@ namespace RODBInterface // strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, AccPageID, ModDateTime, Info ) "; strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, ModDateTime, AccPageID, Info ) "; strInsert = strInsert + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.Group + ",'" + ro.GetAttribute("ParentID"); - strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp + "');"; + strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp.ToString() + "');"; } else { strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, ModDateTime, Info ) "; strInsert = strInsert + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.Group + ",'" + ro.GetAttribute("ParentID"); - strInsert = strInsert + "','" + dt + "','" + xmlstrTmp + "');"; + strInsert = strInsert + "','" + dt + "','" + xmlstrTmp.ToString() + "');"; } } @@ -2250,7 +2250,7 @@ namespace RODBInterface { strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, AccPageId, ModDateTime, Info ) "; strInsert = strInsert + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.RRO + ",'" + ro.GetAttribute("ParentID"); - strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp + "');"; + strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp.ToString() + "');"; } try @@ -2662,7 +2662,7 @@ namespace RODBInterface char[] chrAry = tinfo2.ToCharArray(); foreach (int chr in chrAry) { - if (chr > 160) + if (chr > 166) { tinfo2Tmp.Append($"\\u{(int)chr}?"); } @@ -2671,7 +2671,7 @@ namespace RODBInterface tinfo2Tmp.Append((char)chr); } } - str = "UPDATE " + echild.GetAttribute("Table") + " SET Info = '" + tinfo2Tmp + "'"; + str = "UPDATE " + echild.GetAttribute("Table") + " SET Info = '" + tinfo2Tmp.ToString() + "'"; str = str + ", ModDateTime = '" + dt + "' WHERE RecID = '" + echild.GetAttribute("RecID") + "';"; DBE.Command(str); DBE.Reader();