【发布时间】:2020-07-06 16:27:31
【问题描述】:
PHP 原生函数 escapeshellarg 在我的机器上转义重音字符
$stringWithAccentedChar = 'Hello à è World';
echo escapeshellarg($stringWithAccentedChar);
// Output : Hello World
我尝试使用语言环境 US 或 FR、iso-8859-1 或 UTF-8。没有变化。
我认为这是设置问题,因为我使用的每个在线 php 测试器都不会转义这些字符。
如何防止删除重音字符?
【问题讨论】:
标签: shell apache2 iso-8859-1 php-7.0