Search code examples
phpcharacter-encodingcompressionzipstring-conversion

Need to convert a ZIP file to a random text file


As title says need to convert a Zip file to text file , no matter the size and no matter if it will make sense or not.But i need to reconvert it to that zip file again (Lose less). The main problem i am having is how to find a alternative text/number version of a character.

The Ascii wont work clearly ,So need help what can be a alternative text for a character specially that garbage looking binary chars in zip , when you see in a editor.

I am not a native English speaker , so i hope the above will make a sense to you guys :)


Solution

  • Look into Base 64 encoding. PHP has functions for this.