Questions tagged «setlocale»

12
PHP setlocale无效
该setlocale()功能未设置所需的语言(德语)。 目标是输出月份名称。 这是到目前为止我的测试代码: <?php date_default_timezone_set('Europe/Berlin'); setlocale(LC_ALL, 'de_DE.utf8'); // Or setlocale(LC_ALL, 'de_DE@euro'); // Or setlocale(LC_ALL, 'de_DE'); // Or setlocale(LC_ALL, 'de'); // Or setlocale(LC_ALL, 'ge'); echo strftime('%B'); 输出: 六月 代替 朱尼 有什么建议? 我没有ssh或其他shell访问权限。 该脚本在Linux服务器上运行。 PHP 5.6版
73 php  date  setlocale 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.