这里是一个例子:
PHP:
<?php echo "ção"; ?>Git Bash:
$ php a.php ├º├úo注意:我正在为Windows编写一个文本控制台应用程序.
解决方案bash控制台已随着更新的基于msys2的(64位)适用于Windows 2.3.5的Git
OP报告:
尽管Git Bash有所不同,我还是继续卸载了msysgit并安装了git-for-windows并解决了问题.
Git For Windows的最新版本包括所有最新的utf-8支持改进和bash 4.3.33 2013(vs. bash 3.1.20 2005)
Here is an example:
PHP:
<?php echo "ção"; ?>Git Bash:
$ php a.php çãoNote: I'm writing a text-console application for Windows.
解决方案The bash console has changed with the more recent msys2-based (64-bits) Git For Windows 2.3.5
The OP reports:
I went ahead and uninstalled msysgit and installed git-for-windows and the problem is solved, although the Git Bash is a little different..
That more recent version of Git For Windows includes all the latest utf-8 support improvements and a bash 4.3.33 2013 (vs. a bash 3.1.20 2005)
更多推荐
为什么Git Bash无法正确显示我的PHP字符串?
发布评论