-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
bpo-47000: Add locale.getencoding()
#32068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
cd4bccc
aaa8956
104206a
8b50eb1
a0204c2
08413f1
f61b622
1c60e5b
7397493
44730dd
7720b10
104008d
a8e50bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -710,8 +710,9 @@ Glossary | |
|
|
||
| On Windows, it is the ANSI code page (ex: ``cp1252``). | ||
|
methane marked this conversation as resolved.
Outdated
|
||
|
|
||
| ``locale.getpreferredencoding(False)`` can be used to get the locale | ||
| encoding. | ||
| On Android and VxWorks, return ``"UTF-8"``. | ||
|
methane marked this conversation as resolved.
Outdated
|
||
|
|
||
| ``locale.getencoding()`` can be used to get the locale encoding. | ||
|
methane marked this conversation as resolved.
|
||
|
|
||
| Python uses the :term:`filesystem encoding and error handler` to convert | ||
| between Unicode filenames and bytes filenames. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO it would be helpful to mention here the Python UTF-8 Mode which ignores the locale encoding and always uses UTF-8. What do you think?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so. This paragraph doesn't describe where the locale encoding is used. On the other hand, following this paragraph looks unnecessary: I will replace it with |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.