[ILUG] puzzle of the day - php & apache & phpbb3
P at draigBrady.com
Wed Jan 28 11:19:00 GMT 2009
Niall O Broin wrote:
> Do you have a setting for default_charset in your php.ini? Your
> HTTP headers say UTF-8 but you have no charet specified in meta tags.
> Mind you, the corruption you referenced is a bit odd, as it's not
> happening with non ASCII characters but with random ASCII characters.
It's not random.
For every non ascii character, there is a corresponding �
at some variable offset from it.
I.E. whatever is processing the multibyte chars is messing up
and putting dodgy characters further on in the buffer.
Note 2 to 3 chars are consumed for each �, so it looks like these
dodgy characters are being interpreted again as UTF8 and
converted to the "replacement character" \uFFFD.
More information about the ILUG