Certain characters showed up as "?"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peteqlee
    Member
    • Apr 2001
    • 53

    Certain characters showed up as "?"

    Hi, there

    I have just upgraded to vb 2.2.6 from 2.2.1. Everything went fine but since the upgrade, certain characters in the post showed up as "?" only. When I tried to edit the post it showed up with no problem.

    I am running the forum for thai people, so I guess it maybe the problem for 2 byte characters? If so, does anybody know how to fix this problem?
  • Fusion
    Senior Member
    • Aug 2001
    • 4346
    • 3.8.x

    #2
    Yes, the character-set is definately worth looking into. If that's not it, the font used when displaying the threads may be incapable of properly presenting the characters.
    Toddler from Hell

    Comment

    • Mike Sullivan
      Former vBulletin Developer
      • Apr 2000
      • 13327
      • 3.6.x

      #3
      Remove these two lines in functions.php:

      Code:
        $text = str_replace(chr(173), '_', $text);
        $text = str_replace(chr(160), '_', $text);

      Comment

      • Fusion
        Senior Member
        • Aug 2001
        • 4346
        • 3.8.x

        #4
        Originally posted by Ed Sullivan
        Remove these two lines in functions.php:

        Code:
          $text = str_replace(chr(173), '_', $text);
          $text = str_replace(chr(160), '_', $text);
        Because? Was the upgrade-script(s) faulty, Mike?
        Toddler from Hell

        Comment

        • Mike Sullivan
          Former vBulletin Developer
          • Apr 2000
          • 13327
          • 3.6.x

          #5
          No, because he's using a double-byte language. Those are empty characters--but not spaces--in an ASCII character set.

          Comment

          • Fusion
            Senior Member
            • Aug 2001
            • 4346
            • 3.8.x

            #6
            Right. I'm assuming this is something vB3 will take into consideration (ref. language-packs).
            Toddler from Hell

            Comment

            • peteqlee
              Member
              • Apr 2001
              • 53

              #7
              Originally posted by Ed Sullivan
              Remove these two lines in functions.php:

              Code:
                $text = str_replace(chr(173), '_', $text);
                $text = str_replace(chr(160), '_', $text);
              Thanks for reply.

              However, I have removed those lines from functions.php in admin folder but no help. It still showed up as "?".

              Somebody in my forum said "character showed up as '_'(0x5F) when 0xAD needs to be displayed and there are 25 charcters using 0xAD" Sadly, I don't know what that means.

              Any ideas?

              Comment

              Related Topics

              Collapse

              Working...