解决gist 上传代码提示Error: “xE6” on US-ASCII 问题

现象:

ubuntu@oracle:~$ pu .vimrc 
Error: "\xE6" on US-ASCII

export LC_ALL="en_US.UTF-8"尝试fail

bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ubuntu@oracle:~$ 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=C.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
ubuntu@oracle:~$ pu .vimrc

解决方法

They should disappear after issuing:

sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales 

ref

>>>>>>>>>>>> [解决gist工具上传code乱码异常问题.md describe start] >>>>>>>>>>>>  
\_\*\_ coding: utf-8\ _\*\_  
  
\# @File    :   解决gist工具上传code乱码异常问题.md  
\# @Version :   version1.0  
\# @Author  :   88.uy  
\# @Email   :   admin@88.uy  
\# @Time    :   210126210944  
\# @Description:  
  
<<<<<<<<<<<< [解决gist工具上传code乱码异常问题.md describe end] <<<<<<<<<<<<  

© 版权声明
THE END
在时间中留下我的脚印
分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情图片