File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1589,7 +1589,7 @@ appear before it.
15891589
15901590As this behaviour is broken, the incorrect BOM insertion code is being removed
15911591from Python 3.2.4 and later. However, it is not being replaced, and if you
1592- want to produce RFC 5424-compliant messages which includes a BOM, an optional
1592+ want to produce RFC 5424-compliant messages which include a BOM, an optional
15931593pure-ASCII sequence before it and arbitrary Unicode after it, encoded using
15941594UTF-8, then you need to do the following:
15951595
@@ -1607,8 +1607,8 @@ UTF-8, then you need to do the following:
16071607 way, it will remain unchanged after UTF-8 encoding).
16081608
16091609#. Replace the Unicode section with whatever placeholders you like; if the data
1610- which appears there after substitution is Unicode, that's fine -- it will be
1611- encoded using UTF-8.
1610+ which appears there after substitution contains characters outside the ASCII
1611+ range, that's fine -- it will be encoded using UTF-8.
16121612
16131613The formatted message *will * be encoded using UTF-8 encoding by
16141614``SysLogHandler ``. If you follow the above rules, you should be able to produce
You can’t perform that action at this time.
0 commit comments