I have the latest version of vbulletin (3.6.8_2) and a database in UTF-8 charset and collation.
My php.ini is configures as follows:
[mbstring]
language = Arabic
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = UTF-8
mbstring.substitute_character = 12307
mbstring.func_overload = 124
And in my config.php, I have the following:
database type = MySqli
MySqli Charset = utf8
My problem occurs when any string gets truncated using strlen (i.e. posts title, last 10 posts bar). In fact, I get squares, question marks, and some other characters at the end of the string which is not part of it origionally. I think my problem is due to the variable size of utf8 characters which make strlen() function to have abnormal behavior with utf8 strings since it works in bytes bases.
I hope that you can help me getting this problem resolved as soon as possible because I don't want to leave my forum like this since it might cause corruption or some other problems.
Please see the attachments for more information. (note: first one with IE and second with Firefox)
Regards,
Aqeel
My php.ini is configures as follows:
[mbstring]
language = Arabic
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = UTF-8
mbstring.substitute_character = 12307
mbstring.func_overload = 124
And in my config.php, I have the following:
database type = MySqli
MySqli Charset = utf8
My problem occurs when any string gets truncated using strlen (i.e. posts title, last 10 posts bar). In fact, I get squares, question marks, and some other characters at the end of the string which is not part of it origionally. I think my problem is due to the variable size of utf8 characters which make strlen() function to have abnormal behavior with utf8 strings since it works in bytes bases.
I hope that you can help me getting this problem resolved as soon as possible because I don't want to leave my forum like this since it might cause corruption or some other problems.
Please see the attachments for more information. (note: first one with IE and second with Firefox)
Regards,
Aqeel
Comment