src/ztfy/utils/doctests/README.txt
branchZTK-1.1
changeset 256 cb99848d8334
parent 148 d3668ecd9137
equal deleted inserted replaced
255:da1d22528032 256:cb99848d8334
    58 the final result:
    58 the final result:
    59 
    59 
    60     >>> unicode.translateString(sample, escapeSlashes=True, spaces='-')
    60     >>> unicode.translateString(sample, escapeSlashes=True, spaces='-')
    61     u'test.txt'
    61     u'test.txt'
    62 
    62 
       
    63 Unicode module also provides encoding and decoding functions:
       
    64 
       
    65     >>> var = 'Chaîne accentuée'
       
    66     >>> unicode.decode(var)
       
    67     u'Cha\xeene accentu\xe9e'
       
    68     >>> unicode.encode(unicode.decode(var)) == var
       
    69     True
       
    70 
       
    71     >>> utf = u'Cha\xeene accentu\xe9e'
       
    72     >>> unicode.encode(utf)
       
    73     'Cha\xc3\xaene accentu\xc3\xa9e'
       
    74     >>> unicode.decode(unicode.encode(utf)) == utf
       
    75     True
       
    76 
    63 
    77 
    64 Dates functions
    78 Dates functions
    65 ---------------
    79 ---------------
    66 
    80 
    67 Dates functions are used to convert dates from/to string representation:
    81 Dates functions are used to convert dates from/to string representation: