[Qt-interest] problem with accents

Brad Howes howes at ll.mit.edu
Mon Aug 3 22:35:12 CEST 2009


On Aug 3, 2009, at 4:23 PM, mierdatutis mi wrote:

> I have a file with text with accents.
>
> When I pass the information of the file to a qtablewidget, the text  
> have strange characters instead of accents.
>
> How could I have the same text that the file in my qtablewidget?

Apparently, you have a Unicode format mismatch: your file's data is  
encoded in one format and Qt expects data in another. Are you using  
QTextStream to do the reading of the file?

Brad

-- 
Brad Howes
Group 42
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420








More information about the Qt-interest-old mailing list