Hyper: Messy code for Chinese

Created on 2 Jan 2019  ·  7Comments  ·  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: macOS Mojave 10.14.2
  • Hyper.app version: 2.1.0(stable)
  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/ieiayaobb/7c98108c0889eb4226735522f9f75918
  • Relevant information from devtools _(CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere)_: That part is a canvas, so I cannot get the dom value.
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue


image
it should be a Chinese value: 'Google 云端硬盘', but it displays as 'Google ????????????'
it runs well when I was using Chinese as my OS language, but when I switch to English, this issue comes out.

Most helpful comment

Maybe there's something wrong with your locale setting. Check your locale setting.

$ locale

If LANG= and LC_ALL= is not set, add the following code to your zshrc or bashrc. Make sure source the rc file after adding them.

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

Hope it will help :)

All 7 comments

try to set different fontFamily which is support Chinese in your .hyer.js.
配置文件里面换个字体试试?

@mu-yu it doesn't make sense, I changed to use 'Menlo' instead, the issue is still

try move powerline fonts to low priority level after Menlo.

Actually, I tried to only leave 'Menlo' only, it still cannot be fixed.
I even kept each one only of the fonts list, the issue is still.

Maybe there's something wrong with your locale setting. Check your locale setting.

$ locale

If LANG= and LC_ALL= is not set, add the following code to your zshrc or bashrc. Make sure source the rc file after adding them.

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

Hope it will help :)

@Xwai it works, thanks a lot

how to solve it on Window10

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anthonyettinger picture anthonyettinger  ·  3Comments

laur1s picture laur1s  ·  3Comments

rauchg picture rauchg  ·  3Comments

ghost picture ghost  ·  3Comments

cilice picture cilice  ·  3Comments