PHP Classes

characterData called twice

Recommend this page to a friend!

      ods-php  >  All threads  >  characterData called twice  >  (Un) Subscribe thread alerts  
Subject:characterData called twice
Summary:characterData called twice in UTF-8
Messages:1
Author:Miguel
Date:2008-11-22 12:17:54
 

  1. characterData called twice   Reply   Report abuse  
Picture of Miguel Miguel - 2008-11-22 12:17:54
hi,
when parsing an ods document, if a character of more than 1 byte is found the parser calls "characterData" more than once. I should do this work around in lines 184 and 188

$this->sheets[$this->currentSheet]['rows'][$this->currentRow][$this->currentCell]['value'] .= $data;

instead of

$this->sheets[$this->currentSheet]['rows'][$this->currentRow][$this->currentCell]['value'] = $data;