Ticket #7178: encoding.patch
| File encoding.patch, 509 bytes (added by paradise.qingfeng@gmail.com, 1 week ago) |
|---|
-
django/utils/encoding.py
old new 43 43 44 44 If strings_only is True, don't convert (some) non-string-like objects. 45 45 """ 46 if encoding=='X-MAC-SIMP-CHINESE':encoding='utf-8' 46 47 if strings_only and isinstance(s, (types.NoneType, int, long, datetime.datetime, datetime.date, datetime.time, float)): 47 48 return s 48 49 try:
