PyXR

c:\python24\lib \ encodings \ utf_8.py



0001 """ Python 'utf-8' Codec
0002 
0003 
0004 Written by Marc-Andre Lemburg (mal@lemburg.com).
0005 
0006 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
0007 
0008 """
0009 import codecs
0010 
0011 ### Codec APIs
0012 
0013 encode = codecs.utf_8_encode
0014 
0015 def decode(input, errors='strict'):
0016     return codecs.utf_8_decode(input, errors, True)
0017 
0018 class StreamWriter(codecs.StreamWriter):
0019     encode = codecs.utf_8_encode
0020 
0021 class StreamReader(codecs.StreamReader):
0022     decode = codecs.utf_8_decode
0023 
0024 ### encodings module API
0025 
0026 def getregentry():
0027 
0028     return (encode,decode,StreamReader,StreamWriter)
0029 

Generated by PyXR 0.9.4
SourceForge.net Logo