clue/reactphp-utf8

Add UTF-8 encoder

clue opened this issue · 1 comments

clue commented

Transcode from X to UTF-8

clue commented

Transcoding from X to UTF-8 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 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 👍