
10-16-2008, 08:55 PM
|
 |
|
|
Join Date: Sep 2007
Location: The Netherlands
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by saturngod
It's can't support unicode or what problem is that
I am written
Playing ThreeKingdom ကစား
but It's just save like
Playing ThreeKingdom အရမ္း
How to fix it ?
|
I guess this would solve that:
Quote:
Originally Posted by marcinl
For anyone having problems with non-English languages being improperly displayed by this mod, there is a very simple solution. But you need the iconv extension installed for you php - it's probably by default if you have PHP5.
Open the file vbstatus_ajax.php
find:
PHP Code:
if($vbulletin->options['vbstatus_wordwrap']){
$att->clean['statusupdate']=wordwrap($att->clean['statusupdate'], $vbulletin->options['vbstatus_wordwrap'], "\n", true);
}
And after that add just one line:
PHP Code:
$att->clean['statusupdate'] = iconv("utf-8", "iso-8859-2", $att->clean['statusupdate']);
Obviously, in place of iso-8859-2, you have to put the correct encoding that you're using on you VB site.
It works perfectly for me in case of Polish.
|
Quote:
Originally Posted by ZomgStuff
I would suggest adding this to the template where it say "welcome X, you have X new private messages" in forumhome.
|
I know at http://www.vbulletin-germany.org/ there's a working example for this. Just run a search for vbstatus there.
|