# stage2 parser: UTF-8 encode \\u\{NNNNNN\} escape sequences · gitcafe/zig

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

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

Visibility: public

Requested revision: 5c8a507e7a8e2e58a0ca855689bcd2edd2ab6ab8

Requested commit: 5c8a507e7a8e2e58a0ca855689bcd2edd2ab6ab8

Commit: 5c8a507e7a8e2e58a0ca855689bcd2edd2ab6ab8

Tree: 97fc20a6da874c0d808c31e92609e95bb854c973

Author: Cody Tapscott

Committer: Andrew Kelley

## Message

```
stage2 parser: UTF-8 encode \u{NNNNNN} escape sequences

The core of this change is to re-use the escape sequence parsing logic
for parsing both string and character literals.

The actual fix is that UTF-8 encoding was missing for string literals
with \u{...} escape sequences.

```

## Parents

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

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