Windows 7中的Mongo shell“无法正确显示unicode文本”

时间:2013-05-17 10:59:19

标签: mongodb windows-7 cmd mongo-shell

我使用的是Windows 7 64位,我的键盘安装了英语和希腊语。 如果我切换到mongo shell并尝试编写UTF希腊字符,我会收到此错误

"Unicode text could not be correctly displayed.
Please change your console font to a Unicode font (e.g. Lucida Console)."

它从mongo shell退出。

同样,当我输入db.names.find()时,它会显示names集合的内容,但UTF字符会混乱。

我可以在常规cmd提示符中编写UTF字符而不会出现问题。

1 个答案:

答案 0 :(得分:1)

我通过执行此过程并将字体更改为Lucida Console来解决系统问题。在此之前,它设置为Raster Fonts

  1. 打开cmd
  2. 右键单击标题栏
  3. 选择属性
  4. 选择Font标签,然后从中选择Lucida Console字体,然后按ok