Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UTF-8 decoder #5

Closed
clue opened this issue Jun 1, 2016 · 1 comment
Closed

Add UTF-8 decoder #5

clue opened this issue Jun 1, 2016 · 1 comment

Comments

@clue
Copy link
Owner

clue commented Jun 1, 2016

Transcode from UTF-8 to X

@clue
Copy link
Owner Author

clue commented Aug 19, 2018

Transcoding from UTF-8 to X requires knowledge how X is structured (encoded). As such, I don't think this is something that can be solved for the general case. As an alternative #16 and #17 (and others) suggest adding dedicated decoders (and encoders) for Latin1 (ISO 8859-1), UTF-16 and other common encodings. We may add more encodings in the future and/or add a way to interface with iconv or PHP's multibyte functions, but other than that I have no use case for this 👍

Arguably, transcoding from UTF-8 to X is somewhat easier than the other way around (transcoding from X to UTF-8 as discussed in #4) because we can rely on UTF-8 input encoding and only need an interface for converting to the target encoding.

@clue clue closed this as completed Aug 19, 2018
@clue clue removed the easy pick label Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant