msantyx / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

htmlentities breaks encoding #56

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. works with any non-english character set.

I suggest a simple fix - Pass encoding to htmlentities.

Just replace 
   $val = htmlentities($val); 
with
   $val = htmlentities($val, ENT_NOQUOTES, $this->_defaultEncoding);

I'm attaching a diff.

Original issue reported on code.google.com by ilian.tz...@gmail.com on 21 Dec 2009 at 1:31

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed at 2.22 at:
http://code.google.com/p/php-excel-reader2/

Original comment by sirsh...@gmail.com on 19 Jan 2010 at 1:04