Skip to content
  1. Apr 11, 2013
  2. Jan 04, 2013
  3. Nov 27, 2012
  4. Jun 07, 2012
  5. Jun 04, 2012
  6. May 24, 2012
  7. May 23, 2012
  8. May 21, 2012
  9. May 16, 2012
  10. May 15, 2012
  11. May 14, 2012
  12. May 11, 2012
    • Sébastien Luttringer's avatar
      string interpolation must be done in unicode · ada63e45
      Sébastien Luttringer authored
      If we have to format (aka interpolatation) we need to be sure this have to be
      done in unicode and not in ascii. This avoid unicode error with ascii string
      encoded in utf-8.
      
      Example of failure between a string and an object
      
      b = Exception(u"é")
      Exception("error: %s" % b)
       => Exception("error: %s" % str(b)
       => UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 0: ordinal not in range(128)
      ada63e45