简体   繁体   English

ANSI颜色在Git Bash EXCEPT中可用于'php artisan'命令

[英]ANSI colors working in Git Bash EXCEPT for 'php artisan' commands

I'm on Windows 10 Pro 64bit. 我使用的是Windows 10 Pro 64位。 New AMD Ryzen system. 新的AMD Ryzen系统。 And I've got a weird issue. 我有一个奇怪的问题。

ANSI colors work fine for everything except Laravel commands. ANSI颜色对于Laravel命令以外的所有内容都适用。 Any ideas anyone? 有任何想法吗?

Git Bash显示Laravel Help命令显示ANSI字符

Looks like a character encoding issues. 看起来像是字符编码问题。

Did you save your file as utf8? 您是否将文件另存为utf8? Or did you use special characters? 还是使用特殊字符? If you copy paste your commands from somewhere; 如果复制,则从某处粘贴命令。 first past them in Notepad, then select all, copy content, and past again in your project. 首先将它们粘贴到记事本中,然后全选,复制内容,然后再次粘贴到项目中。

I ended up upgrading Laravel from 5.2 to 5.4 and it fixed it... We'll see what other bugs this has caused lol. 我最终将Laravel从5.2升级到5.4,并对其进行了修复...我们将看看这还导致了哪些其他错误。 But I was going to upgrade at some point anyway. 但是无论如何我还是会升级。

Thanks a lot for the responses! 非常感谢您的答复! Helped me think about a different perspective! 帮助我思考不同的观点!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM