[Qt-interest] why .fromLocal8Bit() is needed

chandrasekar wagmare sekarwagmare at gmail.com
Fri Mar 20 11:18:00 CET 2009


thanks for reply ..
yes its english only ... and another thing i want to know ..
        QByteArray newData = process.readAllStandardError(); so first i
should always get the output in QByteArray ..? i can t use QString directly
...?
2009/3/20 Thiago Macieira <thiago.macieira at trolltech.com>

> Em Sexta-feira 20 Março 2009, às 09:32:38, chandrasekar wagmare escreveu:
> > thanks for reply first ....
> > my process will output some text like "joystick failed due to ....
> problem"
> > .. in this case what shall i use :fromAscii.? or any thing else ...?
>
> You have to know what encoding the process you're running uses. We can't
> tell
> you: it's your process.
>
> If it's English only, then fromLatin1 will work. If it may output anything
> else that is not US-ASCII, then you have to know the encoding it uses.
>
> --
> Thiago Macieira - thiago.macieira (AT) nokia.com
>  Senior Product Manager - Nokia, Qt Software
>     Sandakerveien 116, NO-0402 Oslo, Norway
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090320/0880389e/attachment.html 


More information about the Qt-interest-old mailing list