且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将utf-8输入用于cmd Python模块

更新时间:2023-11-27 16:05:22

Karl,您的代码非常适合我。看到以下内容:

Your code works perfectly for me, Karl. See this:

dda$ ./nb.py 
log> tagada
2013-01-15 tagada
log> ***
2013-01-15 ***
log> 

notes.md 文件包含适当的条目。因此,我认为这不是 cmd 在这里有问题,但可能在您的终端设置中有问题。尝试添加

And the notes.md file contains the proper entries. So I don't think it's cmd that's at fault here, but probably something in your terminal settings. Try adding

export LESSCHARSET=utf-8

在您的 .profile 中。