Decode stanza XML with &#x...;

Moral Moral
Added almost 4 years ago


I'm stucked with this issue one week, I'm adding an user in my roster with name "Albërto Morál" , then when I create the the result stanza is:

the XML has changed the name to "Albërto Morál" because ë and á can't be rendered in ASCII.

is there a way to decode this stanza in server side?

thanks in advance,

Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

What database do you use? Have you configured it to use Unicode (for example in case of using MySQL: Configuring MySQL for UTF-8 Support?) Tigase supports unicode out of the box.

Added by Moral Moral almost 4 years ago

My fault, I modified again my question with an extra space between & and #xEB; to avoid been decoded. When I add a new user to my Roster with this item tigase saves the name of that user with Alb& #xEB;rto Mor& #xE1;l and I want to be saved like Albërto Morál because when I receive my roster, I receive this item:

any ideas?


Added by Wojciech Kapcia TigaseTeam almost 4 years ago

You could modify/extend Roster plugin to perform desired action/decoding. However, I would say it would be better to simply send without encoding it.