Why does Git Bash not display my PHP strings correctly?

拥有回忆 提交于 2019-12-10 10:44:36

问题


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)



来源:https://stackoverflow.com/questions/29758614/why-does-git-bash-not-display-my-php-strings-correctly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!