# Add std.unicode.fmtUtf8 that can handle ill-formed UTF-8 · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f6b6b8a4ae4780f21c45824d34d8e14b3c3b5037)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f6b6b8a4ae4780f21c45824d34d8e14b3c3b5037

Requested commit: f6b6b8a4ae4780f21c45824d34d8e14b3c3b5037

Commit: f6b6b8a4ae4780f21c45824d34d8e14b3c3b5037

Tree: c5268759bed345397b8eb41d0dcb616dabcd7b21

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
Add std.unicode.fmtUtf8 that can handle ill-formed UTF-8

Ill-formed UTF-8 byte sequences are replaced by the replacement character (U+FFFD) according to "U+FFFD Substitution of Maximal Subparts" from Chapter 3 of the Unicode standard, and as specified by https://encoding.spec.whatwg.org/#utf-8-decoder

```

## Parents

- [80508b98c26051cec9f96aceabea03df80e72942](https://git.cafe/gitcafe/zig/commit/80508b98c26051cec9f96aceabea03df80e72942?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f6b6b8a4ae4780f21c45824d34d8e14b3c3b5037?format=markdown)
