Closed dciccale closed 6 years ago
You should use UTF-8. Legacy encodings cover only some parts of some scripts. It's why Unicode was invented - an encoding that covers all scripts.
The legacy encodings should only be used when absolutely necessary for interop with systems where no other choice is available.
That's exactly the reason why I have to use legacy encoding. thanks
On Nov 25, 2017 18:58, "Joshua Bell" notifications@github.com wrote:
You should use UTF-8. Legacy encodings cover only some parts of some scripts. It's why Unicode was invented - an encoding that covers all scripts.
The legacy encodings should only be used when absolutely necessary for interop with systems where no other choice is available.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/inexorabletash/text-encoding/issues/75#issuecomment-346955927, or mute the thread https://github.com/notifications/unsubscribe-auth/AAg7miTdFD2_FmE8Ud4DAxqv0i-iSecaks5s6FVMgaJpZM4QqW2A .
There is a character that fails to be encoded.
Here is how to reproduce the error:
Output:
UPDATE: It only works with encoding
windows-1257
. Should I use that encoding instead?