Hyper: Accent marks as unknown character

Created on 13 Dec 2016  路  14Comments  路  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: Windows 8.1 x64, v6.3.9600
  • Hyper.app version: 1.0.0
  • Link of a Gist with the contents of your .hyper.js: LINK
  • Relevent information from devtools _(CMD+SHIFT+I on Mac OS, CTRL+SHIFT+I elsewhere)_: N/A
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

I have an issue with the accent marks in Spanish, they appear as a unknown character (It seems to be related to encoding) I leave a screenshot, thanks!

captura

Most helpful comment

Hyper 1.4.8 (stable) on Windows 10 (1709) w/ Git Bash.

Solved by adding the env.LANG property with value fr_FR.UTF-8.

$ vim ~/.hyper.js
    // for environment variables
    env: {
        TERM: 'msys', // Don't pay attention to that property if you are on UNIX/LINUX
        LANG: "fr_FR.UTF-8"
    },

If you would like to list and search for a specific locale

$ locale -a | grep "fr" # this wont work on windows based shell

If you would like to test a specific locale before applying changes to the ~/.hyper.js

$ export LANG=fr_FR.UTF-8

Then test the locale with a command like vimtutor.

Replacing fr with the locale you want to search.

Tested in vimtutor which displays diacritic french characters properly now.

vimtutor

All 14 comments

@urkopineda could you paste some Spanish characters to comment, i'll try on my branch

@dotcypress, here are:

  • 谩 茅 铆 贸 煤
  • 帽 莽

That character from screenshot should be 'Versin'. Thanks!

Hello there.
Same here in french :

Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits r锟絪erv锟絪.

茅, 脿, 猫, 霉, 莽, 锚

Same here in french, under MAC OS X (also under Linux)

capture d ecran 2016-12-19 a 16 13 20

Same here in french under Ubuntu
capture du 2017-01-17 19-47-02

I can't reproduce this 馃 Accented chars works fine for me on macOS, Linux and Windows 馃槬

SHELL=/bin/bash
TERM_PROGRAM=Hyper
TERM=xterm-256color
TERM_PROGRAM_VERSION=1.1.0
LANGUAGE=fr_FR
alex@laptop:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr.UTF-8
LANGUAGE=fr_FR
LC_CTYPE="fr.UTF-8"
LC_NUMERIC="fr.UTF-8"
LC_TIME="fr.UTF-8"
LC_COLLATE="fr.UTF-8"
LC_MONETARY="fr.UTF-8"
LC_MESSAGES="fr.UTF-8"
LC_PAPER="fr.UTF-8"
LC_NAME="fr.UTF-8"
LC_ADDRESS="fr.UTF-8"
LC_TELEPHONE="fr.UTF-8"
LC_MEASUREMENT="fr.UTF-8"
LC_IDENTIFICATION="fr.UTF-8"
LC_ALL=

Same thing in my computer:

ezequiel@ezequielkit ~ $ uname -a
Linux ezequielkit 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64     x86_64 GNU/Linux


ezequiel@ezequielkit ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=es_419.UTF-8
LANGUAGE=
LC_CTYPE="es_419.UTF-8"
LC_NUMERIC=es_AR.UTF-8
LC_TIME=es_AR.UTF-8
LC_COLLATE="es_419.UTF-8"
LC_MONETARY=es_AR.UTF-8
LC_MESSAGES="es_419.UTF-8"
LC_PAPER=es_AR.UTF-8
LC_NAME=es_AR.UTF-8
LC_ADDRESS=es_AR.UTF-8
LC_TELEPHONE=es_AR.UTF-8
LC_MEASUREMENT=es_AR.UTF-8
LC_IDENTIFICATION=es_AR.UTF-8
LC_ALL=

Im also having this issue.
OS: Linux mint 18.1 - Mate
pantallazo-2017-02-14 02-02-38
Im谩genes, M煤sica. Any character with a an Accent isnt being displayed.

Same issue on MacOS X Sierra 10.12.3

export LANG=fr_FR-UTF-8 make the character with an accent looks without instead of the ??.
茅 becomes e, 脿 becomes a, ...

I can't write 茅 or any other accent in Hyper.
Tried to change the font but no effect.

Same issue with accent.
No solution ?

Hyper 1.4.8 (stable) on Windows 10 (1709) w/ Git Bash.

Solved by adding the env.LANG property with value fr_FR.UTF-8.

$ vim ~/.hyper.js
    // for environment variables
    env: {
        TERM: 'msys', // Don't pay attention to that property if you are on UNIX/LINUX
        LANG: "fr_FR.UTF-8"
    },

If you would like to list and search for a specific locale

$ locale -a | grep "fr" # this wont work on windows based shell

If you would like to test a specific locale before applying changes to the ~/.hyper.js

$ export LANG=fr_FR.UTF-8

Then test the locale with a command like vimtutor.

Replacing fr with the locale you want to search.

Tested in vimtutor which displays diacritic french characters properly now.

vimtutor

Works also on MacOS High Sierra.
@aminnairi Thanks for the tip

But do not configure TERM to msys. Not recognized on MacOS X.

This is a specific environment variable for Windows. Don't pay attention to that if you are on GNU/Linux or Mac OSX or UNIX. Updated my answer with this comment. Thanks for pointing that out @rbe1733

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weabot picture weabot  路  3Comments

juicygoose picture juicygoose  路  3Comments

sarneeh picture sarneeh  路  3Comments

ConstantinChirila picture ConstantinChirila  路  3Comments

daenuprobst picture daenuprobst  路  3Comments