UTF-8 Encoding and Arabic language problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aL_aSeeR
    New Member
    • Dec 2006
    • 6
    • 3.6.x

    UTF-8 Encoding and Arabic language problem

    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
    Attached Files
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    Are you using UTF-8 for your HTML Charset on your forum? You can check this by going to

    AdminCP > Languages & Phrases > Language Manager > Edit Settings > HTML Character Set

    Also, check the following setting and ensure that it is blank

    AdminCP > vBulletin Options > vBulletin Options > Censorship Options > Blank Character Stripper

    Comment

    Related Topics

    Collapse

    Working...