MCPcopy
hub / github.com/django/django / DjangoUnicodeDecodeError

Class DjangoUnicodeDecodeError

django/utils/encoding.py:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class DjangoUnicodeDecodeError(UnicodeDecodeError):
12 def __str__(self):
13 return "%s. You passed in %r (%s)" % (
14 super().__str__(),
15 self.object,
16 type(self.object),
17 )
18
19
20def smart_str(s, encoding="utf-8", strings_only=False, errors="strict"):

Callers 1

force_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected