Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top