| 1 | ## encoding |
| 2 | |
| 3 | |
| 4 | [](https://github.com/gdamore/encoding/actions/workflows/linux.yml) |
| 5 | [](https://github.com/gdamore/encoding/actions/workflows/windows.yml) |
| 6 | [](https://github.com/gdamore/encoding/blob/master/LICENSE) |
| 7 | [](https://codecov.io/gh/gdamore/encoding) |
| 8 | [](https://godoc.org/github.com/gdamore/encoding) |
| 9 | |
| 10 | Package encoding provides a number of encodings that are missing from the |
| 11 | standard Go [encoding]("https://godoc.org/golang.org/x/text/encoding") package. |
| 12 | |
| 13 | We hope that we can contribute these to the standard Go library someday. It |
| 14 | turns out that some of these are useful for dealing with I/O streams coming |
| 15 | from non-UTF friendly sources. |
| 16 | |
| 17 | The UTF8 Encoder is also useful for situations where valid UTF-8 might be |
| 18 | carried in streams that contain non-valid UTF; in particular I use it for |
| 19 | helping me cope with terminals that embed escape sequences in otherwise |
| 20 | valid UTF-8. |