decode string with utf if possible
(string)
| 18 | |
| 19 | |
| 20 | def decode(string): |
| 21 | """ decode string with utf if possible """ |
| 22 | try: |
| 23 | return string.decode("utf8", "replace") |
| 24 | except: |
| 25 | return string |
| 26 | |
| 27 | |
| 28 | def remove_chars(string, repl): |
no test coverage detected