Skip to content

Instantly share code, notes, and snippets.

@gocs
Created June 27, 2022 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gocs/21fe0835cb7134f10fdbcdf78a34917e to your computer and use it in GitHub Desktop.
Save gocs/21fe0835cb7134f10fdbcdf78a34917e to your computer and use it in GitHub Desktop.
enable UTF-8 support in the Linux console?
#!/bin/sh
# https://unix.stackexchange.com/a/303713
# send character-string to enable UTF-8 mode
if test ".$1" = ".off" ; then
printf '\033%%@'
else
printf '\033%%G'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment