Vbulletin Translation and encoding issue
Collapse
X
-
Comment
-
-
Just to point out, in this case that would be quite a bad idea. If you use ISO-8859-1 for English then you would end up with a post table that contains a mix of raw ISO-8859-1 and UTF-8. In fact, using WINDOWS-1256 and ISO-8859-1 for two seperate languages is also a bad idea.
Unfortunately vBulletin does not track the charset used on a per post/per thread basis so if you ever wanted to convert such a table to another charset at a later date (ie UTF-8) then it would be extremely difficuly to do the conversion as the conversion process won't know if the source character set is WINDOWS-1256 or ISO-8859-1 when reading the content.
If you need to use mutliple languages, the safest solution is to use UTF-8 for everything. Even using ISO-8859-1 for arabic content (as well as english) would be a better approach despite being incorrect as then the characters will at least be encoded by the browser to NCRs (the htmlentities that you refered to). If you convert to UTF-8 later the conversion can decode the NCRs into UTF-8 along with the surrounding content in the source characterset.👍 1Comment
-
Beside what Darren has said, I noticed by looking at my post table, that it includes a mix of windows-1256 chars and the unicode characters in &ersand; entities. I have always used windows-1256 and nothing else and my content is only in arabic and yet this still happens. So converting to UTF-8 isn't quite easy, especially for larg forums.while(true){
if($someone->needsHelp() && $i->canHelp()) $post->help();
if($i->findBug()) $post->bug();
}
Comment
-
I've always used windows-1256 for all language packs I use and worked just fine... but not with 4.0 (email issue with 4)To be or not to be... Where the hell is the question????My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too
Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16
Comment
-
I have been running vB3.x on a persian forum for quite a while with no issues, but after I upgraded to vB4 search for non-english words no longer works. In fact, it never returns any results. All my tables use utf8 charset with utf8_general_ci collation. I do not use $config['Mysqli']['charset'] = 'utf8' in my config. If I enable it, my forum starts throwing errors.
I have rebuilt the index a few times, but the problem persists. It is really frustrating and my users are really pissed off because of this issue. Any help is appreciated.Comment
-
-
I noticed by looking at my post table, that it includes a mix of windows-1256 chars and the unicode characters in &ampersand; entities. I have always used windows-1256 and nothing else and my content is only in arabic and yet this still happens. So converting to UTF-8 isn't quite easy
They also take more space (not a big problem these days but it'd still be better using a more efficient character encoding) and can pose logical problems - Σ counts as 6 characters; but these aren't much different from the challenges posed by multibyte characters anyway.Comment
-
Hey apply, have a look at this bug and the solution from Strateges.Comment
Related Topics
Collapse
-
by CraigI'm not sure if I'm barking up the right tree with this, however I have been experiencing for several versions going back to 5.1.7 (presently on 5.4.0) where when I copy an article that was created in...
-
Channel: Support Issues & Questions
-
-
by Deimos24Hi
I upgraded from vb 4.2.2 to vb 5.0.5 but all forum became like this :
����� ��������...-
Channel: Support Issues & Questions
-
Comment