Why does Git Bash not display my PHP strings corre

2019-05-19 06:01发布

问题:

Here is an example:

PHP:

<?php
echo "ção";
?>

Git Bash:

$ php a.php
ção

Note: I'm writing a text-console application for Windows.

回答1:

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)