Hello,

i am working with Qt4 and MySql. All the tables in my database have "DEFAULT CHARSET=utf8", because i am writing in Portuguese and i need accents, in my cpp file i use:

Qt Code:
  1. res = QString::fromUtf8((const char*)r.data(), r.length());
To copy to clipboard, switch view to plain text mode 

and it works for most of the characters, but still i cant decode uppercase characters with accents like à or Ó.

Does any one know why?

Thanks in advance,

Paulo