dtlygweb2017 2014-05-14 01:41
浏览 49
已采纳

mbstring.language设置为日语?

I'm on an English language server hosted in Australia from Digital Pacific when I was having a look through my PHP.ini file in WHM I saw that the mbstring.language is set to Japanese. Will this effect anything in a negative way or is it best to leave it as it is?

The mbstring.internal_encoding is also set to EUC-JP

I'm having some issues with some plugins on one of my WordPress sites so might this be effecting it?

Cheers

  • 写回答

1条回答 默认 最新

  • douchao9899 2014-05-14 12:17
    关注

    I recommend you to check if you could overwrite this setting with .htaccss or PHP functions such as mb_language() and ini_set() .

    The value of mb_language is used for encoding e-mail messages. mb_send_mail() uses this setting to encode e-mail. So, it is good to set "English" or "uni"(UTF-8) unless you use Japanse character sets.

    Set with .htaccess

    When using PHP as an Apache module, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .htaccess files. You will need "AllowOverride Options" or "AllowOverride All" privileges to do so.

    #
    #  .htaccess
    #
    php_value date.timezone "America/Los_Angeles"
    php_value default_charset "UTF-8"
    php_value mbstring.internal_encoding "UTF-8"
    

    The document is here:
    http://www.php.net/manual/en/ini.list.php
    http://www.php.net/manual/en/configuration.changes.php

    Set with PHP functions

    <?php
      mb_language('English');
      ini_set('mbstring.internal_encoding', 'UTF-8');
      mb_regex_encoding('UTF-8');
    ?>
    

    You can see documnets here:
    http://www.php.net/manual/en/function.mb-language.php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分