Problem on TextBox value from Rich-text field from Database

Hi,

I’m basically trying to get data from field of type RichText and place that data in a textbox. There are 2 major problems with that, the first one I already found a solution to, wich is that you get the data in HTML format, to fix that I placed it first in a text element and then set the value of the textbox to that text. It works almost perfect, it still shows special characters in unicode or something like that.

Example: when I retrieve the data “Sem formatação” and do that trick to convert HTML to plain text, it returns “Sem formatação”.

I made also a test: I wrote some text with special characters in a text element and then set the value of the textbox to that text and it converted the special characters.

I tried it with variables, with the toString() function, but nothing converts the special characters. Can someone please me?

This issue has already been reported to QA and will hopefully be resolved soon.

Hey,
I came up with a almost perfect solution: I made a function that replaces the most used character codes to the actual character. It’s a pretty long function, if you want me to post it in the Forum so others can get use of it, just tell me ;D

Of course - post it. You’ll be helping out the community by providing a workaround. And your reward will be the warm and fuzzies .