Skip to content
  1. 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
  2. Mar 26, 2012
  3. Mar 02, 2012
  4. Mar 01, 2012
  5. Feb 27, 2012
  6. Feb 20, 2012
  7. Feb 10, 2012
  8. Feb 09, 2012
  9. Jan 30, 2012
  10. Jan 05, 2012
  11. Dec 22, 2011
  12. Dec 21, 2011
  13. Dec 20, 2011
  14. Dec 14, 2011
  15. Dec 09, 2011