[英]Why does rails terminal still await input after I copy paste in some code?
When copy pasting in some code like: 使用以下代码复制粘贴时:
params = { :user => { :email =>“yencn02@yahoo.com"} }
The console still is awaiting input, and I have to CTRL+C to escape from it. 控制台仍在等待输入,我必须按CTRL + C才能从中退出。 The console then says: 控制台然后说:
>> params
=> nil
But it works at my colleague's. 但这对我同事有用。 What's wrong? 怎么了?
You have a UTF-8 character in there which is messing things up. 您那里有一个UTF-8字符,这使事情变得混乱。 Namely the “
character. 即“
字符”。 Replace it with the standard "
character and it should work. 将其替换为标准的"
字符,它应该可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.