Chinese Language Pack

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • patrickb
    New Member
    • Jun 2007
    • 27

    Chinese Language Pack

    I just tried installing both Chinese Language packs (Simplified and Traditional)

    After importing them, none of the Chinese characters show up, only question marks.

    How do I fix this?

    They are rated for version 3.6.6 and I am running 3.6.7 PL1, but I don't think that is the problem since there shouldn't be much difference between those two versions.

    Also, I noticed the collation used for the tables created by vBulletin is latin1_swedish_ci... Should this be utf8? If so, how do I change this? (This is a new installation, so I don't mind dropping all the tables..)

    Thanks
  • patrickb
    New Member
    • Jun 2007
    • 27

    #2
    I changed the collation for all my tables to utf8, but no change

    Anybody?

    Comment

    • Chousho
      Senior Member
      • Jan 2004
      • 967
      • 3.8.x

      #3
      Did you try to rebuild the language after importing?

      Comment

      • patrickb
        New Member
        • Jun 2007
        • 27

        #4
        Yes I did.
        After doing some looking around, it would seem that all the chinese characters are saved as "?" (question mark) in the Database.
        I also changed the character set to utf8 so there should be a problem (the collation is utf8_general_ci)

        What am I doing wrong? Why isn't the language importing properly?

        Also, I am able to input some Chinese characters in posts and they show up correctly!

        Comment

        • Chousho
          Senior Member
          • Jan 2004
          • 967
          • 3.8.x

          #5
          Oh, in the character stripper, make sure that field is blank.

          VBulletin Options->Censorship Options->Blank Character Stripper

          Comment

          • patrickb
            New Member
            • Jun 2007
            • 27

            #6
            Removed everything from the Blank Character Stripper field but still no go.

            I also tried the arabic language pack and same result. Seems it won't allow UTF8 languages...

            Any other ideas?

            Comment

            • patrickb
              New Member
              • Jun 2007
              • 27

              #7
              I also checked my MySQL settings for vB and everything is in UTF-8

              character_set_client utf8 character_set_connection utf8 character_set_database utf8 character_set_filesystem utf8 character_set_results utf8 character_set_server utf8 character_set_system utf8 character_sets_dir /usr/share/mysql/charsets/ collation_connection utf8_general_ci collation_database utf8_general_ci collation_server utf8_general_ci
              I'm at a loss here..

              Comment

              • Chousho
                Senior Member
                • Jan 2004
                • 967
                • 3.8.x

                #8
                I'll mess about with my test forum and see if I can get it working. I tried using the pack and had the same problem. I'll post back if I get it working and give details.

                Comment

                • patrickb
                  New Member
                  • Jun 2007
                  • 27

                  #9
                  Thanks for your help

                  Hope to hear from you soon!

                  Comment

                  • patrickb
                    New Member
                    • Jun 2007
                    • 27

                    #10
                    I just wanted to say I was able to fix the problem with the help of vB support.

                    Is it ok to post the fix here since it came from support?

                    Comment

                    • Steve Machol
                      Former Customer Support Manager
                      • Jul 2000
                      • 154488

                      #11
                      Yep.
                      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                      Change CKEditor Colors to Match Style (for 4.1.4 and above)

                      Steve Machol Photography


                      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                      Comment

                      • Chousho
                        Senior Member
                        • Jan 2004
                        • 967
                        • 3.8.x

                        #12
                        Originally posted by Steve Machol
                        Yep.
                        So that's the go-ahead~

                        Comment

                        • patrickb
                          New Member
                          • Jun 2007
                          • 27

                          #13
                          The fix is quite simple. It has to do with the fact that by default, vB parses the xml file using ISO-8859-1. So around line 140 in includes/class_xml.php

                          simply replace
                          Code:
                          function &parse($encoding = 'ISO-8859-1', $emptydata = true)

                          to :
                          Code:
                          function &parse($encoding = 'UTF-8', $emptydata = true)
                          I did that and it worked


                          Comment

                          • imprezion
                            Senior Member
                            • Apr 2007
                            • 108
                            • 3.6.x

                            #14
                            Originally posted by patrickb
                            The fix is quite simple. It has to do with the fact that by default, vB parses the xml file using ISO-8859-1. So around line 140 in includes/class_xml.php

                            simply replace
                            Code:
                            function &parse($encoding = 'ISO-8859-1', $emptydata = true)

                            to :
                            Code:
                            function &parse($encoding = 'UTF-8', $emptydata = true)


                            I did that and it worked
                            mine not working..I'm getting question-marks ????? even in the AdminCP, I'm getting question marks too.. What can I do other than replacing the 140 line above. I'm on 3.6.8 version

                            Comment

                            • imprezion
                              Senior Member
                              • Apr 2007
                              • 108
                              • 3.6.x

                              #15
                              For Traditional, I just got it fixed. no more questions marks.

                              For simplified, do I need to change the import file name since it is just vbulletin-language.xml? should I change it to something like, vbulletin-language-sc.xml? and also the buttons, do I have to change it to buttons-sc as well? or just leave the buttons folder name as is?

                              thanks

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...