Skip to content

Commit

Permalink
chore(docs): update encoding/locale answer in FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Apr 6, 2023
1 parent c8a3f0c commit dfa50ba
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@ fmt.Println(style.Render("Hello, kitty"))
```

## FAQ

<details>
<summary>
Why isn't my border rendering correctly?
Why are things misaligning? Why are borders at the wrong widths?
</summary>
This is due to your encoding. If you aren't using UTF-8, you'll need to set an environment variable to be used by Lip Gloss.

`export LC_CTYPE="en_US.UTF-8"`
<p>This is most likely due to your locale and encoding, particularly with regard to Chinese, Japanese, and Korean (for example, <code>zh_CN.UTF-8</code> or <code>ja_JP.UTF-8</code>).
The most direct way to fix this is to set <code>RUNEWIDTH_EASTASIAN=0</code> in your environment.</p>

related: https://github.com/charmbracelet/lipgloss/issues/186
<p>For details see https://github.com/charmbracelet/lipgloss/issues/40.</p>
</details>

<details>
<summary>
Why isn't Lip Gloss displaying colors?
Expand Down

0 comments on commit dfa50ba

Please sign in to comment.