Skip to content

JlCompress is missing utf-8 support #114

@davidwojnar

Description

@davidwojnar

It would be nice to be able to use the JlCompress utility function with utf-8 support.

It should be fairly simple to do that. Basically for each function one only has to do the following:
QuaZip zip(fileCompressed);
zip.setUtf8Enabled(true);

Backward compatibility makes it a little bit trickier.
So, there are at least four possible solutions for that:

  1. make it a compile time condition
  2. Add some sort of static variable to JlCompress that can be set e.g. static bool JlCompress::enableUtf8 = false;
  3. Add a new parameter to the functions e.g. static bool compressFile(QString fileCompressed, QString file, bool enableUtf8 = false);
  4. Add new functions e.g static bool compressFileUtf8(QString fileCompressed, QString file);

I can update the code, and send a pull request, but would like to have some opinion on which way to go.
I am preferring 3 the most, but am open for better suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions