mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Improved cookbook entry and fixed typo.
This commit is contained in:
		
							parent
							
								
									e708a8a4aa
								
							
						
					
					
						commit
						a58d668fd9
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -1562,7 +1562,7 @@ appear before it.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
As this behaviour is broken, the incorrect BOM insertion code is being removed
 | 
					As this behaviour is broken, the incorrect BOM insertion code is being removed
 | 
				
			||||||
from Python 3.2.4 and later. However, it is not being replaced, and if you
 | 
					from Python 3.2.4 and later. However, it is not being replaced, and if you
 | 
				
			||||||
want to produce RFC 5424-compliant messages which includes a BOM, an optional
 | 
					want to produce RFC 5424-compliant messages which include a BOM, an optional
 | 
				
			||||||
pure-ASCII sequence before it and arbitrary Unicode after it, encoded using
 | 
					pure-ASCII sequence before it and arbitrary Unicode after it, encoded using
 | 
				
			||||||
UTF-8, then you need to do the following:
 | 
					UTF-8, then you need to do the following:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1580,8 +1580,8 @@ UTF-8, then you need to do the following:
 | 
				
			||||||
   way, it will remain unchanged after UTF-8 encoding).
 | 
					   way, it will remain unchanged after UTF-8 encoding).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#. Replace the Unicode section with whatever placeholders you like; if the data
 | 
					#. Replace the Unicode section with whatever placeholders you like; if the data
 | 
				
			||||||
   which appears there after substitution is Unicode, that's fine -- it will be
 | 
					   which appears there after substitution contains characters outside the ASCII
 | 
				
			||||||
   encoded using UTF-8.
 | 
					   range, that's fine -- it will be encoded using UTF-8.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The formatted message *will* be encoded using UTF-8 encoding by
 | 
					The formatted message *will* be encoded using UTF-8 encoding by
 | 
				
			||||||
``SysLogHandler``. If you follow the above rules, you should be able to produce
 | 
					``SysLogHandler``. If you follow the above rules, you should be able to produce
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue