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 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染