PyDocs

Nav

Internationalization

getpreferredencoding

locale

function (source)
  • getpreferredencoding(do_setlocale=True)
Return the charset that the user is likely using,
according to the system configuration.
Changed in 3.7
  • 3.7: The function now always returns "utf-8" on Android or if the Python UTF-8 Mode is enabled.
0 Examples
No examples for locale/getpreferredencoding.
See Also
No see-alsos for locale/getpreferredencoding
0 Notes
No notes for getpreferredencoding