Menu

#3 To use mb_convert_encoding rather than using iconv.

closed
nobody
None
5
2004-09-27
2004-09-26
No

*** /home/ishikawa/work/osechi/Excel/reader.php.org Sat
Sep 11 18:31:00 2004
--- /home/ishikawa/work/osechi/Excel/reader.php Sun Sep
26 21:40:30 2004
***************
*** 767,773 ****
--- 767,782 ----

function _encodeUTF16($string){
if ($this->_defaultEncoding){
+ // It is better to use mb_convert_encoding
rather than using iconv.
+ // If it is why mb_convert_encoding since
it is the extended module of PHP.
+ // In order to use mb_convert_encoding As
the option of configure
+ // what is necessary is to attach
--enable-mbstring and just to compile.
+ /*
return
(Spreadsheet_Excel_Reader_HAVE_ICONV) ?
iconv('UTF-16LE', $this->_defaultEncod\ ing, $string): $string;
+ */
+ return mb_convert_encoding ( $string,
+
$this->_defaultEncoding,
+ 'UTF-16LE' );
}else{
return $string;
}

Diff finished at Sun Sep 26 21:40:36

Discussion

  • Vadim Tkachenko

    Vadim Tkachenko - 2004-09-27
    • status: open --> closed
     
  • Vadim Tkachenko

    Vadim Tkachenko - 2004-09-27

    Logged In: YES
    user_id=947998

    Added in 2h release

     

Log in to post a comment.