【问题标题】:Mongo shell in Windows 7 "unicode text could not be correctly displayed"Windows 7 中的 Mongo shell“无法正确显示 unicode 文本”
【发布时间】:2013-05-12 12:32:19
【问题描述】:

我使用的是 64 位 Windows 7,并且为我的键盘安装了英语和希腊语。 如果我切换到 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 字符。

【问题讨论】:

  • 这里有同样的问题......意大利键盘mongo shell是一团糟...... Console2 / Poweshell / Power cmd / Cygwin - winpty ....这些都不起作用!我真的不知道!

标签: mongodb windows-7 cmd mongo-shell


【解决方案1】:

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

  1. 打开cmd
  2. 右击标题栏
  3. 选择属性
  4. 选择Font 选项卡,然后从那里选择Lucida Console 字体并按ok

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-26
    • 1970-01-01
    相关资源
    最近更新 更多