File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 44
55Python3.6 on XS8 does not have an all-encompassing default UTF-8 mode for I/O.
66
7- Newer Python versions have an UTF-8 mode that they even enable by default.
8- Python3.6 only enabled UTF-8 for I/O when an UTF-8 locale is used.
7+ Newer Python versions have a UTF-8 mode that they even enable by default.
8+ Python3.6 only enabled UTF-8 for I/O when a UTF-8 locale is used.
99See below for more background info on the UTF-8 mode.
1010
1111For situations where UTF-8 enabled, we have to specify UTF-8 explicitly.
1212
13- Such sitation happens when LANG or LC_ * variables are not set for UTF-8.
14- XAPI plugins like auto-cert-kit find themself in this situation.
13+ This happens when LANG or LC_ * variables are not set for UTF-8.
14+ XAPI plugins like auto-cert-kit find themselves in this situation.
1515
1616Example:
1717For reading UTF-8 files like the ` pciids ` file, add ` encoding="utf-8" ` .
18- This applies especailly to ` open() ` and ` Popen() ` when files my contain UTF-8.
18+ This applies especially to ` open() ` and ` Popen() ` when files may contain UTF-8.
1919
20- This also applies when en/decoding to/form ` urllib ` which uses bytes.
20+ This also applies when en/decoding to/from ` urllib ` which uses bytes.
2121` urllib ` has to use bytes as HTTP data can of course also be binary, e.g. compressed.
2222
2323## Migrating ` subprocess.Popen() `
You can’t perform that action at this time.
0 commit comments