Ticket #7178: encoding.patch

File encoding.patch, 509 bytes (added by paradise.qingfeng@…, 7 years ago)

patch

  • django/utils/encoding.py

     
    4343
    4444    If strings_only is True, don't convert (some) non-string-like objects.
    4545    """
     46    if encoding=='X-MAC-SIMP-CHINESE':encoding='utf-8'
    4647    if strings_only and isinstance(s, (types.NoneType, int, long, datetime.datetime, datetime.date, datetime.time, float)):
    4748        return s
    4849    try:
Back to Top