View previous topic :: View next topic |
Author |
Message |
martinianakiev n00b
Joined: 04 Sep 2002 Posts: 15
|
Posted: Thu Feb 20, 2003 8:50 pm Post subject: mod_php screws up after setlocale() |
|
|
I have been trying to install squirrelmail for the past few days and there seems to be a very odd problem. after the charset is set in php, functions like strtolower totally mess up giving unpredictable results.
I tested it and if I echo strtolower("some text") without doing a setlocale() the text gets displayed properly. but if I set the locale explicitly to for example setlocale(LC_ALL , 'en_US'), then strtolower returns garbage no matter what.
Does anyone have a clue why this is happening?
p.s. Also squirrelmail should work just fine with php 4.2.3, but on my gentoo box it doesn't work with php 4.2.3 at all, and works ok(except for the locale problem) with 4.3.0, and 4.3.1. Anyone know anything about this?
i'm using apache 1.3.27 |
|
Back to top |
|
|
martinianakiev n00b
Joined: 04 Sep 2002 Posts: 15
|
Posted: Fri Feb 21, 2003 4:53 pm Post subject: |
|
|
What nobody knows?! This is what I get after a simple php function that is supposed to show a nice colorful message.
< bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0" width="100%"><>< align="">
this is only part of it, but the rest is very similar.
see the tags are all messed up because html_tag does strtolower and that's what it returns....
please, please, please somebody out there help me fix this s**t. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|