Show More
@@ -43,11 +43,11 b' def getdefaultencoding():' | |||
|
43 | 43 | return enc or sys.getdefaultencoding() |
|
44 | 44 | |
|
45 | 45 | def decode(s, encoding=None): |
|
46 |
encoding = |
|
|
46 | encoding = encoding or getdefaultencoding() | |
|
47 | 47 | return s.decode(encoding, "replace") |
|
48 | 48 | |
|
49 | 49 | def encode(u, encoding=None): |
|
50 |
encoding = |
|
|
50 | encoding = encoding or getdefaultencoding() | |
|
51 | 51 | return u.encode(encoding, "replace") |
|
52 | 52 | |
|
53 | 53 |
General Comments 0
You need to be logged in to leave comments.
Login now