Announcement

Collapse
No announcement yet.

Chinese Language Pack

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Anybody?

    Comment


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

      Comment


      • #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


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

          VBulletin Options->Censorship Options->Blank Character Stripper

          Comment


          • #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


            • #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


              • #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


                • #9
                  Thanks for your help

                  Hope to hear from you soon!

                  Comment


                  • #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


                    • #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


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

                        Comment


                        • #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


                          • #14
                            Originally posted by patrickb View Post
                            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


                            • #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

                              Related Topics

                              Collapse

                              Working...
                              X