Having trouble with mb_convert_encoding()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gerard_P
Forum Newbie
Posts: 6
Joined: Thu May 01, 2003 6:44 am

Having trouble with mb_convert_encoding()

Post by Gerard_P »

Hello everyone. It seems that in my program mb_convert_encoding does not work. I am trying to change the variable type into EUC-JP and I am using
mb_convert_encoding($variable,"EUC-JP");

but when i use mb_detect_encoding($variable) to check if the type is changed, i see that it is not changed.

Is there a need to change php.ini file settings to be able to use mb_convert_encoding?

By the way, the php was configured in such a way that mbstr-enc-trans, mbstring, and mbregex are enabled.

My environment uses the following:
OS :RedHat Linux 7.3 2.96-110
Apache Ver :1.3.27
PHP Ver :4.2.2
Postage SQL Ver :7.2.3
Post Reply