为什么 Git Bash 不能正确显示我的 PHP 字符串?
Why does Git Bash not display my PHP strings correctly?
这是一个例子:
PHP:
<?php
echo "ção";
?>
Git Bash:
$ php a.php
ção
注意:我正在为 Windows 编写一个文本控制台应用程序。
bash 控制台已更改为更新的 msys2-based (64-bits) Git For Windows 2.3.5
OP 报告:
I went ahead and uninstalled msysgit and installed git-for-windows and the problem is solved, although the Git Bash is a little different..
Git For Windows 的最新版本包括所有 latest utf-8 support improvements 和 bash 4.3.33 2013(对比 bash 3.1 .20 2005)
这是一个例子:
PHP:
<?php
echo "ção";
?>
Git Bash:
$ php a.php
ção
注意:我正在为 Windows 编写一个文本控制台应用程序。
bash 控制台已更改为更新的 msys2-based (64-bits) Git For Windows 2.3.5
OP 报告:
I went ahead and uninstalled msysgit and installed git-for-windows and the problem is solved, although the Git Bash is a little different..
Git For Windows 的最新版本包括所有 latest utf-8 support improvements 和 bash 4.3.33 2013(对比 bash 3.1 .20 2005)