gist: Does not seem to support gists with UTF8 content

Trying to gist a file with unicode in it, throws error:

Error: "\xE2" on US-ASCII

There doesn’t seem to be a commandline option for unicode support. 😦

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 7
  • Comments: 15

Most upvoted comments

$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
$ gist -c -p README.md
https://gist.github.com/XXX
$ export LC_CTYPE=C
$ gist -c -p README.md
Error: "\xE6" on US-ASCII
$ export LC_ALL=en_US.UTF-8
$ gist -c -p README.md
https://gist.github.com/XXX

export LC_ALL=en_US.UTF-8 can solve this issue on macOS.