[Interest] custom string encoder/decoder

Thiago Macieira thiago.macieira at intel.com
Mon Jun 20 17:42:34 CEST 2022


On Monday, 20 June 2022 07:45:21 PDT Manner Róbert wrote:
> Hi,
> 
> previously we used QTextCodec to implement our custom (ebcdic) text
> codecs. We mainly used these for iterating through the available codecs
> and as an abstraction for doing an actual conversion from codec -> utf-8.
> 
> As far as I see, there is no similar API in Qt6 (except from
> qt5compatibility), right? So I can't really extend the available codecs
> now, can I?
> 
> Also it seems to me (from docs) that Qt no longer supports any codec
> other than utf-* and iso8859-1, is that right? Do you know of any good
> libs to fill that gap? Or is the best approach to call iconv directly?

This is being fixed in 6.4:

https://codereview.qt-project.org/c/qt/qtbase/+/393373
https://codereview.qt-project.org/c/qt/qtbase/+/417200

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering





More information about the Interest mailing list