Strange characters in PHP Composer and Laravel installer output - Windows 10 CMD

元气小坏坏 提交于 2019-12-20 03:14:58

问题


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

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...

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

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.


回答1:


I had the same problem, friend.

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

PHP Composer on PowerShell

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

Check this old thread: How to make win32 console recognize ANSI/VT100 escape sequences?

Hope this helps.



来源:https://stackoverflow.com/questions/38882176/strange-characters-in-php-composer-and-laravel-installer-output-windows-10-cmd

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