Q:

Why is my internal encoding ISO-8859-1 when I have specified utf-8 in my php.ini file?

In my php.ini file, I have included mbstring.internal_encoding = "UTF-8".  (I have tried with or without double quotes, capitalized or not.)
Yet when I run echo "current internal encoding: ".mb_internal_encoding();, I still get ISO-8859-1.
Why is this, and is there anything I can do in the php.ini file to set internal encoding once and for all?
I'm using WAMPserver on a WinXP laptop.

A:

As mentioned in the comments this is because there are usually at least two php.ini files: one for the command line version and one for the Apache plugin. You need to make sure you edit the right one.
This is not an uncommon problem and I've certainly been bitten by it before.

