warpdotdev / Warp

Warp is the agentic development environment, built for coding with multiple AI agents.
https://warp.dev
Other
24.04k stars 492 forks source link

When previewing Chinese markdown, there is garbled text. #6584

Open c4bbage opened 1 month ago

c4bbage commented 1 month ago

Pre-submit Checks

Describe the bug

When previewing Chinese markdown, there is garbled text.

Image

To reproduce

  1. client markdown path in term
  2. preview markdown

Expected behavior

No response

Screenshots, videos, and logs

Image

Operating system (OS)

macOS

Operating system and version

15.5.0

Shell Version

No response

Current Warp version

v0.2025.05.28.08.11.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 1 month ago

Thanks for letting us know. Many users have resolved display and encoding issues by setting the locale to Chinese UTF-8 in their shell configuration files (such as .zshrc or .bashrc). Add the following lines:

export LC_ALL=zh_CN.UTF-8
export LANG=zh_CN.UTF-8

Let us know if that helps.

To anyone else facing this issue, please add a 👍 to the original post at the top or comment with your details, and subscribe if you'd like to be notified.