strange character modification during posting
Posted: Thu Jun 28, 2007 7:33 pm
Hi,
When RC1 was relased i have upgraded my old forum (2.0.22). Everything was fine. No errors, all data are in place... no problem with that.
But my problem is when i want to write a post. My native language is polish and my forum is in polish. When i write post with polish chars and send post it becomes corrupted. What is strange it is corrupted after polish char occur and sometimes one char is replaced by "?" but on black background sometimes couple of chars.
The second thing is that not always that occur. I have tried many times and sometimes chars are correct other time they are corrupt.
I am using freebsd 6.2 with php 5.2.3 with apache 2.2.4
I have pcre with utf-8 and mbstring.
What i have found is when i turn off mbsting extension from php.ini everything is ok. I have ran forum for a week without mbstring and there was no errors in posts. But then i have found out that mbstring is needed for other software on my system and i had to turn it on again. And again wrong chars becomes to show. Users started to complain that their posts are corrupted in a way that it is hard to read. Not only polish chars are changed to "?" but even regular ASCII one but alway after the polish char.
I have even changed
if (extension_loaded('mbstring'))
to
if (!extension_loaded('mbstring'))
in includes/utf/utf_tools.php
But it solved this errors little bit. Right now these wrong chars shows little bit less often. But still it happens.
When i edit those posts in phpmyadmin to the correct chars, forum shows them correctly. But when i write posts with forum and send them quite often they are corrupted. And when i check those posts in phpmyadmin those strange chars shows too.
So my question is what can be wrong ? Why when i do not load mbstring with php everything is ok ?
I have correct settings for mbstring like that:
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off
mbstring.substitute_character = ?;
mbstring.func_overload = 0
what else can i do to fix this ??? please help me
When RC1 was relased i have upgraded my old forum (2.0.22). Everything was fine. No errors, all data are in place... no problem with that.
But my problem is when i want to write a post. My native language is polish and my forum is in polish. When i write post with polish chars and send post it becomes corrupted. What is strange it is corrupted after polish char occur and sometimes one char is replaced by "?" but on black background sometimes couple of chars.
The second thing is that not always that occur. I have tried many times and sometimes chars are correct other time they are corrupt.
I am using freebsd 6.2 with php 5.2.3 with apache 2.2.4
I have pcre with utf-8 and mbstring.
What i have found is when i turn off mbsting extension from php.ini everything is ok. I have ran forum for a week without mbstring and there was no errors in posts. But then i have found out that mbstring is needed for other software on my system and i had to turn it on again. And again wrong chars becomes to show. Users started to complain that their posts are corrupted in a way that it is hard to read. Not only polish chars are changed to "?" but even regular ASCII one but alway after the polish char.
I have even changed
if (extension_loaded('mbstring'))
to
if (!extension_loaded('mbstring'))
in includes/utf/utf_tools.php
But it solved this errors little bit. Right now these wrong chars shows little bit less often. But still it happens.
When i edit those posts in phpmyadmin to the correct chars, forum shows them correctly. But when i write posts with forum and send them quite often they are corrupted. And when i check those posts in phpmyadmin those strange chars shows too.
So my question is what can be wrong ? Why when i do not load mbstring with php everything is ok ?
I have correct settings for mbstring like that:
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off
mbstring.substitute_character = ?;
mbstring.func_overload = 0
what else can i do to fix this ??? please help me
