Commit 17920a4
committed
Decode UTF-8 with 'replace' option to avoid exceptions
To avoid generating an exception when receiving and trying to decode non-
UTF-8 encoded text, use the decode 'replace' option -- this replaces all
malformed encodings with uFFFD REPLACEMENT CHARACTER.
This addresses issue #18 on github.1 parent 517837d commit 17920a4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
0 commit comments