Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Open file with special charaters

$
0
0
I've found a solution.
$fileName = 'xls/testé.txt';
$fileName = mb_convert_encoding ($fileName,'CP1252', 'utf-8');
It converts $fileName from type of encoding 'CP1252' (which is a Windows encoding...) to 'UTF-8' more classic.

Now it work !

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>