![]() |
Saving a utf8 character file to a zip file - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Saving a utf8 character file to a zip file (/showthread.php?tid=33917) |
Saving a utf8 character file to a zip file - El Forum - 09-13-2010 [eluser]Unknown[/eluser] I would like to save a view to a file that is then put in a zip file. The view is being generated with data from a mysql DB. The DB is set to unicode. The view has the utf8 meta tag added. And Db config seems to be OK. I am also viewing this file through the web (without saving and zipping) and everything seems to be working just fine and displaying as expected. The problem seems to be when I am saving to a file then zipping. To get this working on the web portion, I followed this page that told me to create a utf8_helper function like below which is being autoloaded ... Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Any help would be very much appreciated. Saving a utf8 character file to a zip file - El Forum - 01-17-2011 [eluser]Unknown[/eluser] Hi, I have the same problem when trying to add file to zip archive. My files named using Japanese characters(UTF-8), when these files are zipped, file name does not display correctly (contents inside the files still display well). Please help me. Thanks for any helps. |