Saving a utf8 character file to a zip file |
[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.
[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. |
Welcome Guest, Not a member yet? Register Sign In |