conversion of charset to Qt

Asked

Viewed 17 times

0

I have the following string: Qstring str = "Integral noodles. Integral car < br/>"

I don’t know the formatting/charset of this string, but I wanted to be able to take and transform all its special characters the "ã" of the first word "ã" and leave them correctly and if possible also exchange all the html tags (in this case < br/>) for an n, for example...

how can I do this?

  • 2

    It depends on what you call "correctly". It does not have a "correct" charset. It has the most suitable for your application, and you are the one who will decide. For example, if you want the application to work in UTF-8 and its source editor is in UTF-8, the string is already "right". As for the <br> is mere string replacement.

  • 4

    hello, I created two blog post by accident, this is the one I’m using: http://answall.com/questions/97515/formatr-string-qt-html-charset

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.