> > >   S   =   u ' A \ x C 4 B ' 
 
 > > >   p r i n t   S 
 
 A  B 
 
 > > >   c o d e c s . o p e n ( ' u n i . t x t ' ,   ' w ' ,   ' u t f - 8 ' ) . w r i t e ( S ) 
 
 > > >   o p e n ( ' u n i . t x t ' ,   ' r b ' ) . r e a d ( ) 
 
 ' A \ x c 3 \ x 8 4 B ' 
 
 > > >   
 
 > > >   c o d e c s . o p e n ( ' u n i . t x t ' ,   ' r ' ,   ' u t f - 8 ' ) . r e a d ( ) 
 
 u ' A \ x c 4 B ' 
 
 > > >   p r i n t   c o d e c s . o p e n ( ' u n i . t x t ' ,   ' r ' ,   ' u t f - 8 ' ) . r e a d ( ) 
 
 A  B 
 
 > > >   
 
 > > >   S 
 
 u ' A \ x c 4 B ' 
 
 > > >   S . e n c o d e ( ' l a t i n - 1 ' ) 
 
 ' A \ x c 4 B ' 
 
 > > >   S . e n c o d e ( ' u t f - 8 ' ) 
 
 ' A \ x c 3 \ x 8 4 B ' 
 
 > > >   S . e n c o d e ( ' u t f - 1 6 ' ) 
 
 ' \ x f f \ x f e A \ x 0 0 \ x c 4 \ x 0 0 B \ x 0 0 ' 
 
 > > >   
 
 > > >   X   =   S . e n c o d e ( ' u t f - 1 6 ' ) 
 
 > > >   X 
 
 ' \ x f f \ x f e A \ x 0 0 \ x c 4 \ x 0 0 B \ x 0 0 ' 
 
 > > >   X . d e c o d e ( ' u t f - 1 6 ' ) 
 
 u ' A \ x c 4 B ' 
 
 > > >   p r i n t   X . d e c o d e ( ' u t f - 1 6 ' ) 
 
 A  B 