The output from this is including a bunch of " " characters for spaces and they aren't translating very well when I go to store the information in a database, they are being turned into "ᙦ" in the database. Do I need to use a special encoding or something that I'm missing?
Yes, I've had the same problem too. The problem seems to be when you set WebHTMLEditor.Text or WebHTMLEditor.TextWindow.Text = the value that was stored in WebHTMLEditor.TextXhtml.
Because WebHTMLEditor.TextXhtml is read only you cannot set it directly. This control is not handeling "ᙦ" correctly in all versions. This is very poor Infragistics. You created a great control and didn't test it correctly.
I have to do the same work around as yourself.
If strEmailBody.Contains("ᙦ") Then strEmailBody = strEmailBody.Replace("ᙦ", " ")End If
Before assigning WebHTMLEditor.TextWindow.Text, and after reading WebHTMLEditor.TextXhtml
I have the same issue.
I am surprised Infragistics has not released an update for this.
I am also surprised Google couldn't find this page with terms "Infragistics WebHTMLEditor ᙦ"
I used the String.Replace to replace the ᙦ with . This fixes the issue without messing with the spacing/formatting of the string.
stringXhtml = stringXhtml .Replace("ᙦ", " ")
The problem does not seem to appear with WebHTMLEditor.Text, only with WebHTMLEditor.TextXhtml.
I'm also using version 11.1. I haven't used the older versions but I've read that a lot has changed in the core framework of the infragistic controls so i'm not all that suprised that it is a new issue.
I'm using vb.net so my code was a bit different but it looke something like:
.Title = .Title.Replace(" ", " ")
.Title = .Title.Replace("ᙦ", " ")
End If
Basically the same thing as what you posted except I'm putting the spaces back into the string instead of using "string.empty"(which would remove the spaces).
Nevermind...code is wrong...I corrected it. Still dont like that this was introduced after version 9.2. I'd like to see a solid answer why from Infragistics.
What version of Infragistic controls are you using because I tried to do the same fix and it did not work?
Did you do something like this:
if (str.Contains("ᙦ")) { str.Replace("ᙦ", string.Empty); }
This seems pretty absurd that this should even be required. I'm using version 11.1...I did not have this issue with version 9.2.