[Qt-interest] QTextCodec?

Andre Somers andre at familiesomers.nl
Wed Aug 18 14:59:19 CEST 2010


  Op 18-8-2010 14:47, nobody schreef:
> Hi,
> Anyone know if this function will work without libiconv installed on
> win32 QTextCodec::toUnicode() ?
>
> I can't find any configure option using enable iconv with Qt-4.7 beta2
> But this particular function crash at run-time
> QTextCodec::codecForName("supported encodings")
> The returned codec is zero.
Are you sure there is a codec with the name "supported encodings" then? 
Is that in the list you get from QTextCodec::availableCodecs()? Anyway, 
you should never assume that the pointer you get back from a
function like this is valid. Check before derefencing!

I don't know anything about iconv, so if I'm wildly of here because of 
some iconv magic, please accept my apologies.

André




More information about the Qt-interest-old mailing list