Announcement

Collapse
No announcement yet.

Arabic Language problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Arabic Language problems

    I've imported one of the arabic language packs from the download area however when the site is in english mode arabic content appears in wierd characters like so "ÞÓã ÇáÃÏÇÑÉ". However when I switch to the arabic language it appears properly, so how do I fix that ?

  • #2
    Make sure both languages are using the same character set:

    Admin CP -> Languages & Phrases -> Language Manager -> [Edit Settings] -> HTML Character Set

    Normally you would use UTF-8 for everything when your forum is supporting multiple languages.

    Here is some other stuff to check:

    http://www.vbulletin.com/forum/showthread.php?t=259250

    Comment


    • #3
      Would that mean I need to download an arabic package that has the same charset ? The current arabic package (and most of the ones I've seen) use windows-1256 while the english package (default one) uses ISO-8859-1. Are there any ill effects to just switching to UTF-8 ?

      I've read the links provided and they too suggest a switch to UTF-8 but I don't know what other effects that might have, if the language package was written with the windows-1256 charset wouldn't there be issues if I used UTF-8 ?

      Comment


      • #4
        Originally posted by 01101110110110 View Post
        Are there any ill effects to just switching to UTF-8 ?
        Sometimes.

        Some of my customers have recommended this third party utility for converting a forum to UTF-8:

        http://www.vcharset.com/

        Or here is a guide to start from scratch:

        http://www.vcharset.com/how-to-start...ning-pid4.html

        Comment


        • #5
          well I can afford to restart my forums & databse (not much content yet) based on UTF-8 as that seems to be the easiest method, some of the comments on those pages seemed to indicate converting mid-stream is problematic. As long as it doesn't have any future ill-effects I'd be satisfied with that. Thanks for your help.

          Comment


          • #6
            Well I can't seem to be able to convert the arabic language pack to use UTF-8, when I open it in any xml editor the arabic text is unreadable to begin with and thus decoding it is pointless. All the recent arabic packages use windows 1256, I think the last package that had UTF-8 was 3.5 or something like that which is way behind.

            Comment


            • #7
              infact i can't seem to get the english language itself to display properly in UTF-8. Most if it is working but there are a few "????" in the acp and all phrases from the phrase manager also appear in question marks. I made sure to set the DB collation to UTF-8 before reinstalling VB as recommended here . Is there a UTF-8 english pack I need to download ? Why isn't it all in UTF-8 to begin with ? This is already turning into a big mess and I haven't even started using the forums yet.

              Comment


              • #8
                There is no way I know of to convert an existing forum and database to UTF-8, nor is there any official UTF-8 version at this time.

                However if this is a new install you can follow these third party instructions on how to change to UTF-8 in your database.

                http://www.vcharset.com/how-to-start...ning-pid4.html
                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


                • #9
                  yes I've done that, its what introduced the problems to begin with. Now that the DB is transformed to UTF-8 (before the fresh install) the english master language has a few artifacts (????) and now I can't even see the arabic language pack as its all question marks too. I tried re-importing the english language, even tried to download a UTF-8 english pack from the german VB website but it didn't seem to remove the artifacts in the acp.

                  Comment


                  • #10
                    Sorry then, there is nothing we have officially that converts vB to UTF-8.
                    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


                    • #11
                      Well i've seen many arabic VB forums so I know its possible, I gather they're not using UTF-8 to begin with and just sticking to a single language ? The only reason I'm going for UTF-8 is because of this recommendation and the one from my ImpEx thread
                      Originally posted by Jake Bunce
                      Normally you would use UTF-8 for everything when your forum is supporting multiple languages.
                      Should I just stick to the default encoding of windows 1256 for arabic ? From some of the posts I've read it seems some people have managed to transition to UTF-8 (though on older versions) so I'm clearly missing something, would you know where I can get help regarding this matter ? Perhaps some of users could've had experience with this specific issue. It doesn't seem many regular users visit these forums once they've succesfully setup their websites though.

                      If I fail to find a solution, I'll likely make arabic the default language and not mess with its encoding, however would it be possible to hide (not disable) the english language and keep it only for the ACP ? This way I'd avoid users seeing the language artifacts and I can still use english if/when needed.

                      Comment


                      • #12
                        Arabic forums work fine with the default encoding. It does not require UTF-8.

                        You can disable the ability for users to choose a language by setting 'Allow User Selection' to 'No' in the Language Manager.
                        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


                        • #13
                          Alright I can't wrap my head around this, I've done the following steps

                          1) create a fresh database and set it to utf8 (collation utf8_general_ci)
                          2) Alter the VB config.php file to use utf8
                          3) Install VB
                          4) Install an arabic UTF8 package from the acp

                          Yet the arabic language is still all question marks, whats the deal ? I've tried several different packages with different versions each on a clean setup and they all end up that way. I'm clearly missing something because if arabic doesn't work in UTF8 then why are there some packages for it already ?

                          Also I'd like to note that I've used Impex to import a drupal utf8 database into the forums and the arabic there appears properly when i set browser encoding to utf8. It seems there might be something wrong with importing the language itself ?

                          Comment


                          • #14
                            Here is a guide for UTF-8 imports:

                            http://www.vbulletin.com/forum/showt...28#post1526728
                            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


                            • #15
                              well the import is working relatively well, its the actual forum setup that isn't. When everything is UTF8 and I run the import, I get all my stuff imported however the forum interface is the problem. All the UTF-8 arabic language packs that I've imported are not working, giving me "?????" instead. So while the forums & topics have been imported successfully, its the forum interface thats not being translated due to the language packages not working properly. Even if I don't run the import, I still can't get arabic language packages to work in utf8.

                              Comment

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