为什么Git Bash无法正确显示我的PHP字符串? [英] Why does Git Bash not display my PHP strings correctly?

查看:91
本文介绍了为什么Git Bash无法正确显示我的PHP字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是一个例子:

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
ção

Note: 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字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆