~ubuntu-branches/debian/sid/chardet/sid

« back to all changes in this revision

Viewing changes to chardet/universaldetector.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2008-03-05 20:26:06 UTC
  • mto: (2.1.1 intrepid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080305202606-4qgrf3u5e336ha18
Tags: upstream-1.0.1
Import upstream version 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
            elif aBuf[:4] == '\x00\x00\xFF\xFE':
82
82
                # 00 00 FF FE  UCS-4, unusual octet order BOM (2143)
83
83
                self.result = {'encoding': "X-ISO-10646-UCS-4-2143", 'confidence': 1.0}
84
 
            elif aBuf[:4] == '\xFF\xFE':
 
84
            elif aBuf[:2] == '\xFF\xFE':
85
85
                # FF FE  UTF-16, little endian BOM
86
86
                self.result = {'encoding': "UTF-16LE", 'confidence': 1.0}
87
87
            elif aBuf[:2] == '\xFE\xFF':