PHP Composer 和 Laravel 安装程序输出中的奇怪字符 - Windows 10 CMD [英] Strange characters in PHP Composer and Laravel installer output - Windows 10 CMD

查看:16
本文介绍了PHP Composer 和 Laravel 安装程序输出中的奇怪字符 - Windows 10 CMD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 10 上遇到这个问题 -- PHP Composer 显示奇怪的字符.

I have this problem on Windows 10 -- PHP Composer showing strange characters.

我已尝试按照建议安装 ansicon here 它解决了问题,但是如果我尝试在 JetBrains PhpStorm 中使用终端,它就会崩溃......

I have tried to install ansicon as suggested here and it solved the problem but then if I try to use terminal in JetBrains PhpStorm it's crashing...

也许我需要在没有那个 ansicon 的情况下修复它,但我找不到方法.

Maybe I need to fix it without that ansicon but I can't find how.

我只在我的笔记本电脑上遇到了这个问题——在我的台式机上它工作得非常好.他们都有最新版本的 Windows 10 和 PHP + Composer.

I have this problem only on my Laptop -- on my Desktop it's working perfectly fine. They both have Windows 10 and PHP + Composer at the latest versions.

推荐答案

朋友,我也遇到了同样的问题.

I had the same problem, friend.

您尝试过 PowerShell 吗?除非你没有注意到,但它现在也可以在 Github 上找到:https://github.com/PowerShell/PowerShell

Have you tried PowerShell? Only if you didn't notice, but it is also available on Github now: https://github.com/PowerShell/PowerShell

PowerShell 上的 PHP 编写器

我认为问题在于普通的 Windows 终端不支持 ANSI/VT100 颜色.

I think the problem is that the common Windows terminal does not support the ANSI/VT100 colors.

检查这个旧线程:如何让win32控制台识别ANSI/VT100转义序列?

希望这会有所帮助.

这篇关于PHP Composer 和 Laravel 安装程序输出中的奇怪字符 - Windows 10 CMD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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