Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2087

unicode decode errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.14.0
    • Python - Compiler
    • None
    • Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64), python 2.7

    • Patch Available

    Description

      If the supplied string is not valid utf-8 there is an exception:

      self.match = iprot.readString().decode('utf-8')
      File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
      return codecs.utf_8_decode(input, errors, True)
      UnicodeDecodeError: 'utf8' codec can't decode byte 0xf2 in position 0: invalid continuation byte

      Attachments

        1. thrift-2087-unicode-decode-errors.patch
          0.7 kB
          Aleksey Maslennikov

        Issue Links

          Activity

            People

              ebrard Emmanuel Brard
              minisotm Aleksey Maslennikov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m