Created
June 27, 2022 06:22
-
-
Save gocs/21fe0835cb7134f10fdbcdf78a34917e to your computer and use it in GitHub Desktop.
enable UTF-8 support in the Linux console?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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