2016-11-13 72 views
-3

php artisan serveWhy does my command have unkown characters ?未知字符服务命令

I am using cmd, i have read a lot of stuff but i cant find anyone having same problems with me :3 i can't even upload a photo here newbie problems hehe

+0

[32mLaravel开发服务器开始在http://本地主机:8000/[39米 –

+0

什么是你的命令,萨姆森? – natel

+0

@JONASVINCENTSamson使用理解ANSI/VT颜色的终端 - [“[32m”代表转义序列](https://en.wikipedia.org/wiki/ANSI_escape_code)。 – user2864740

回答

1

作为该@ user2864740暗示链路,的终端逸出导致被显示(在你的情况下,这些怪异的代码字符对颜色输出文本)。

您的图片显示您使用的是Windows CMD,请尝试使用GitBash。对我而言,这并不会导致任何特殊字符,但是如果您仍然面临此问题,请将终端选项更新为xterm-256(而不是xterm,这是默认值),如回答here和源here

以供参考,这是我所得到的,当我在GitBash运行php artisan serve

enter image description here