-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Milestone
Description
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:
- make it a compile time condition
- Add some sort of static variable to JlCompress that can be set e.g.
static bool JlCompress::enableUtf8 = false;
- Add a new parameter to the functions e.g.
static bool compressFile(QString fileCompressed, QString file, bool enableUtf8 = false);
- 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
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers