PHP 函数 * 被替换为 ×所以出现错误
嘿,当谈到 php 时,我是一个菜鸟,因为我刚刚开始,我试图通过一个函数执行 ffmpeg 代码,但是当我尝试执行它时,我收到错误,因为“480×360”被替换为“ 480×360',我不确定出了什么问题。 预先感谢您。
Hey i am a noob when it comes to php because i have just started, and I am trying to execute a ffmpeg code through a function but when i try to execute it, i get an error because '480×360' is replaced with '480×360'and i am not sure whats wrong.
Thanks you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的
x
字符不是小写字母 x,而是 unicode codepoint D7 这是乘号。它具有 UTF-8 表示形式 C397。由于您以 Windows CP1252 编码查看内容,因此您会看到字节 C3 和 97,它们显示为重音 A 和破折号。至于具体的分辨率,你可以尝试将乘号替换为小写的x。您没有提到您的具体功能,因此这可能不是合适的解决方案。
Your
x
character, rather than being a lowercase letter x, is the unicode codepoint D7 which is the multiplication sign. This has the UTF-8 representation C397. You are seeing the bytes C3 and 97 which are appearing as your accented A and dash due to you viewing things in the Windows CP1252 encoding.As regards a specific resolution, you could try replacing the multiplication sign with a lower case x. You've not mentioned your specific function, so this may not be the appropriate resolution.
您正在传递 x 的奇怪版本,而不是实际的
x
。您需要将其更改为简单的x
。You are passing the weird version of the x and not an actual
x
. You need to change it to simply be anx
.