Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
hungcotac
Posts: 79
Registered: ‎01-05-2013
My Device: BB10
My Carrier: Viettel
Accepted Solution

Convert htmlspecialchars to unicode

hi

 

i don't know how to convert htmlspecialchars such as 

ê 

à

"

 

ect...

 to unicode char

 

thank

Please use plain text.
Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: Convert htmlspecialchars to unicode

Hi!

QTextDocument document;
document.setHtml(text);
QString plainText = document.toPlainText();

 


Andrey Fidrya, @zmeyc on twitter
Please use plain text.
Developer
hungcotac
Posts: 79
Registered: ‎01-05-2013
My Device: BB10
My Carrier: Viettel

Re: Convert htmlspecialchars to unicode

Yes. Thank you very much. I solve it.:Clap:

Please use plain text.