Cannot compress entries that contains Chinese character #232
Answered
by
rikyoz
Polar-Pumpkin
asked this question in
Q&A
-
When there are items containing Chinese characters in the specified entry list, compression will result in an "No mapping for the Unicode character exists in the target multi-byte code page" error 😢 |
Beta Was this translation helpful? Give feedback.
Answered by
rikyoz
Aug 18, 2024
Replies: 1 comment 7 replies
-
Hi!
Thank you! |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
Thanks for all the details, they really help!
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::string
s are considered as UTF-8 encoded; outputstd::string
s are UTF-8 encoded.This was done to simplify the use of the library within cross-platform projects.
By default, Windows treats
std::string
s as encoded using the system code page, which may not necessarily be UTF-8.In your case, it seems to be the C…