Changeset 3721


Ignore:
Timestamp:
01/25/11 17:53:35 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1510 - Calendar - Ajuste na importacao de compromisso com caracteres especiais.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/calendar/inc/class.boicalendar.inc.php

    r3565 r3721  
    12891289                                $str = trim ($str); 
    12901290                                if ( mb_detect_encoding($str, 'auto') == 'UTF-8' ) 
    1291                                         $str = iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $str); 
     1291                                        $str = preg_replace("/([\xC2\xC3])([\x80-\xBF])/e","chr(ord('\\1')<<6&0xC0|ord('\\2')&0x3F)",$str); 
    12921292 
    12931293                                //$this->debug("LINE : ".$str); 
Note: See TracChangeset for help on using the changeset viewer.