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/lib/yaml/emitter.py

    r347 r351  
    790790        # Write BOM if needed. 
    791791        if self.encoding and self.encoding.startswith('utf-16'): 
    792             self.stream.write(u'\xFF\xFE'.encode(self.encoding)) 
     792            self.stream.write(u'\uFEFF'.encode(self.encoding)) 
    793793 
    794794    def write_stream_end(self): 
Note: See TracChangeset for help on using the changeset viewer.