Ignore:
Timestamp:
08/29/09 16:59:56 (5 years ago)
Author:
xi
Message:

Fixed emitting of invalid BOM for UTF-16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib3/yaml/emitter.py

    r329 r351  
    786786        # Write BOM if needed. 
    787787        if self.encoding and self.encoding.startswith('utf-16'): 
    788             self.stream.write('\xFF\xFE'.encode(self.encoding)) 
     788            self.stream.write('\uFEFF'.encode(self.encoding)) 
    789789 
    790790    def write_stream_end(self): 
Note: See TracChangeset for help on using the changeset viewer.