2021-06-29 | Paul Boddie | file changeset files shortlog | Renamed the utf8string class to unicode, eliminating the unicode function. This means that the simple case of merely returning an object if it is already a Unicode object no longer occurs when using the unicode callable, but such behaviour might be better supported with more general customised instantiation functionality. |
paul@375 | 1 | import locale |
paul@375 | 2 | |
paul@375 | 3 | print locale.getlocale() |
paul@375 | 4 | print locale.initlocale() |
paul@375 | 5 | print locale.getlocale() |
paul@375 | 6 | print locale.setlocale(locale.LC_CTYPE, "en_GB.UTF-8") |
paul@375 | 7 | print locale.getlocale() |