[Qt-interest] QFileInfoList and UTF-8

Alex Strickland sscc at mweb.co.za
Thu Feb 24 13:30:20 CET 2011


On 2011/02/24 02:10 PM, Nikos Chantziaras wrote:

> You can't assume the local filesystem uses UTF-8.  You need to use
> QString::fromLocal8Bit():
>
>     QDir dir( QString::fromLocal8Bit(dirname) );

I don't understand. Can you tell me why that makes a difference when 
dirname is not utf8 (/tmp/demo)?

Thanks
-- 
Alex



More information about the Qt-interest-old mailing list