SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    zip files and greek charactera

    I am trying to download some files from server, first making a zip file on the fly with them.
    So I have a problem with the greek characters of the files , I tried 3 classes and there where a problem with the greek names of files,how can I solve it?
    Dimis

  2. #2
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used this class.
    So when I give at
    Code:
    $zipfile->create_file(file_get_contents("τεστ.txt"),"τεστ");
    greek name has a problem, so I guess the problem is that php file can not give greek names at files of zip.The enconding of file is utf-8 .
    What is wrong?

  3. #3
    Non-Member
    Join Date
    Oct 2009
    Posts
    1,852
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    May be it's problem with zip extension.
    I'd suggest to use command line version of zip, I'm sure your system has one.

  4. #4
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using php Version 5.3.0-0.dotdeb.8 .
    Should I try 5.2.x?

  5. #5
    Non-Member
    Join Date
    Oct 2009
    Posts
    1,852
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no idea.
    I'd use command line zip which independend from php version.

  6. #6
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am doing a download manager.
    So I can not use zip comand line?
    Is there another simiral way to zip?

  7. #7
    Non-Member
    Join Date
    Oct 2009
    Posts
    1,852
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    command line zip can output archive content to stdout, so, you can have it in variable, using backtick operator.

  8. #8
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, is there any tutorial for this?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •