[PyQt] QString.normalized()

Dmitry Shachnev mitya57 at ubuntu.com
Sat Nov 5 12:03:35 GMT 2016


Hi,

On Sat, Nov 05, 2016 at 11:57:11AM +0000, Timothy W. Grove wrote:
> Without the actual QString class in PyQt5.7, is there an equivalent to
> QString.normalized() somewhere? I would like to have access to the
> normalizations functions in ICU, but I'm having a little trouble installing
> PyICU at the moment. Thanks.

Use unicodedata.normalize(form, string) from the standard library.

https://docs.python.org/3/library/unicodedata.html#unicodedata.normalize

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161105/1fc9775d/attachment.sig>


More information about the PyQt mailing list