PySide usage snippets/pl

Introduction
These are snippets of code that are useful when creating interfaces with PySide.

UTF8
By using the characters with accents, where you get the error:

Several solutions are possible.

or with the procedure

ASCII
or with the procedure

or

or

or