为什么Git Bash无法正确显示我的PHP字符串?

编程入门 行业动态 更新时间:2024-10-26 18:17:06
本文介绍了为什么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字符串?

本文发布于:2023-07-07 09:06:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1061412.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符串   正确   Git   Bash   PHP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!