cygwin的一些输出只是不能读取与坏的编码? [英] Some of the outputs from cygwin just can not be read with bad encoding?

查看:242
本文介绍了cygwin的一些输出只是不能读取与坏的编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Win7-64bit上使用cygwin,并使用zh_CN.UTF-8作为默认语言环境设置。有时候,cygwin的一些输出不能用坏编码读取,如下所示:

I'm using cygwin on Win7-64bit, and with "zh_CN.UTF-8" as default locale setting. Occasionally, some of the outputs from cygwin just can not be read with bad encoding like follows:

[junit] ▒▒▒▒: ▒Ҳ▒▒▒▒▒▒޷▒▒▒▒▒▒▒▒▒ can't

有什么想法吗?感谢。

推荐答案

http://cygwin.com/faq-nochunks.html#faq.using.weirdchars

这是因为这里有一些中文字符。

It's just caused by some Chinese character here.

更改文本的终端选项,选择字符集为GBK。它工作。

Change the Terminal Options of Text, choose character set as "GBK". It works.

这篇关于cygwin的一些输出只是不能读取与坏的编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆