The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
The problem im facing is mentioned in detail below and kindly check the attached screenshot to get clear idea what im talking about...
When arabic posted on an English forum ---> Shows first half of image When arabic posted on an Arabic Forum --> Shows Second half of the image My only concern is, where is the point from where i could figure out vbulletin is differentiating and inserting content in the threads, postparsed and post table.... There must a check or something which seprating the output... What i have tested and found is that when text entered from charset=ISO-8859-1 format, which is basically english version of forum, no matter i paste arabic in the editor its wel encoded [DESIRED] but when i change the language of the forum it set charset=windows-1256, Which ends up producing unicode and stuff when i paste an arabic text in the new thread or post [NOT DESIRED]. Any one who solve this problem is a When arabic posted on an English forum ---> Shows first half of image When arabic posted on an Arabic Forum --> Shows Second half of the image My only concern is, where is the point from where i could figure out vbulletin is differentiating and inserting content in the threads, postparsed and post table.... There must a check or something which seprating the output... What i have tested and found is that when text entered from charset=ISO-8859-1 format, which is basically english version of forum, no matter i paste arabic in the editor its wel encoded [DESIRED] but when i change the language of the forum it set charset=windows-1256, Which ends up producing unicode and stuff when i paste an arabic text in the new thread or post [NOT DESIRED]. Any one who solve this problem is a GENIUS ![]() |
#2
|
|||
|
|||
![]()
use iconv("windows-1256", "UTF-8",$text);
by default iconv is available in php5.x you can also download php_iconv.dll or iconv.dll and place it in php/extensions your problem will be solved, but make sure your browser encoding in charset=utf-8 and if you are quering from database its not setting charset like mysql_set_charset('utf8'); Rest its working like charm ![]() |
#3
|
|||
|
|||
![]() Quote:
i have a problem like you... if i add an ascii code, ascii code changing to recording to mysql... how can i fix it? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|