RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Recycle Bin > Recycle Bin

For more information about the ads and why they're here, please see the FAQ
Closed Thread
  #1  
Old 09-12-2006, 04:45 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Downloads: 0
Uploads: 0
Default Russian users

Hi. I'm using Russian UI and receiving CP-1251 and KOI8-R encoded messages.
I've added KOI8-R to unicode MAP and it's work perfect, but yesterday i received GB2312 encoded message and of course it wasn't correctly displayed by RoundCube.
I've decided to make RoundCube use iconv php extension.
I've patch RoundCube a little...

in utf8.class.php
OLD:
Code:
  //Translate string ($str) to UTF-8 from given charset
  function strToUtf8($str){
   $chars = unpack('C*', $str);
   $cnt = count($chars);
   for($i=1;$i<=$cnt;$i++) $this->_charToUtf8($chars[$i]);
   return implode("",$chars);
  }
NEW:
Code:
  //Translate string ($str) to UTF-8 from given charset
  function strToUtf8($str){
  return iconv($charset,"UTF-8",$str);
  }
And it's work perfectly. But when i try to add some contact with Russian letters from message to contacts then contact become corrupted...

It would be nice to use iconv widely in RoundCube

P.S. Sorry for my English
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 05:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community