Daily Archives: 10/21/2014

Chinese File Name Handling

Replace file name with Chinese characters:

Uploading Chinese file to both windows and Linux server works, but the problem is to download it. Codeigniter doesn’t allow Chinese character in URL (URI) even I made some changes to config.php and extend URI.php (Core).

To download Chinese files, to use ZIP class is a good solution. File name could be changed when adding it to archive.

Reference:

  1. http://php.net/manual/en/book.zip.php
  2. http://davidwalsh.name/create-zip-php

Sample Code: