Skip to content

Cannot compress entries that contains Chinese character #232

Answered by rikyoz
Polar-Pumpkin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!
Thanks for all the details, they really help!

You can use these file names containing Chinese to create txt files with any content, I think any Chinese characters in the path will cause errors.

I think a possible cause for your problem is the std::string encoding you're using.

Since v4, by default bit7z follows the UTF-8 Everywhere Manifesto.
In short, this means that input std::strings are considered as UTF-8 encoded; output std::strings are UTF-8 encoded.
This was done to simplify the use of the library within cross-platform projects.

By default, Windows treats std::strings as encoded using the system code page, which may not necessarily be UTF-8.
In your case, it seems to be the C…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Polar-Pumpkin
Comment options

@rikyoz
Comment options

Answer selected by Polar-Pumpkin
@Polar-Pumpkin
Comment options

@Polar-Pumpkin
Comment options

@rikyoz
Comment options

@Polar-Pumpkin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment