Here is an example:
PHP:
<?php
echo "ção";
?>
Git Bash:
$ php a.php
ção
Note: I'm writing a text-console application for Windows.
VonC
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)
来源:https://stackoverflow.com/questions/29758614/why-does-git-bash-not-display-my-php-strings-correctly