Show More
@@ -95,7 +95,7 b' def tolocal(s):' | |||||
95 | for e in ('UTF-8', fallbackencoding): |
|
95 | for e in ('UTF-8', fallbackencoding): | |
96 | try: |
|
96 | try: | |
97 | u = s.decode(e) # attempt strict decoding |
|
97 | u = s.decode(e) # attempt strict decoding | |
98 |
if |
|
98 | if e == 'UTF-8': | |
99 | return localstr(s, u.encode(encoding, "replace")) |
|
99 | return localstr(s, u.encode(encoding, "replace")) | |
100 | else: |
|
100 | else: | |
101 | return localstr(u.encode('UTF-8'), |
|
101 | return localstr(u.encode('UTF-8'), |
General Comments 0
You need to be logged in to leave comments.
Login now