Error Encoding on Tidy's MBS Xojoplugin

Hi!
I’m playing with Tidy’s MBS Example, and entering an XML text that its on Spanish with UTF8 encoding. I got this error:

line 2 column 3516 - Warning: replacing invalid character code 147

Despite of it, The text is properly displayed, only for one little detail, the Accents are not displayed, example:

Must say: “ELECTRNICA”
And it shows: ELECTRÃìNICA

I applied define encoding as this, in order to do that, but is doesn’t not work:

call t.ParseString(entrada.text.DefineEncoding(encodings.utf8)) 

Any suggestions?

I solve it using: