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 4
4
5
5
Python3.6 on XS8 does not have an all-encompassing default UTF-8 mode for I/O.
6
6
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.
9
9
See below for more background info on the UTF-8 mode.
10
10
11
11
For situations where UTF-8 enabled, we have to specify UTF-8 explicitly.
12
12
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.
15
15
16
16
Example:
17
17
For 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.
19
19
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.
21
21
` urllib ` has to use bytes as HTTP data can of course also be binary, e.g. compressed.
22
22
23
23
## Migrating ` subprocess.Popen() `
You can’t perform that action at this time.
0 commit comments