haskell / text-icu

This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text.
BSD 2-Clause "Simplified" License
47 stars 41 forks source link

Expose encoding-guessing functions #8

Closed Fuuzetsu closed 2 years ago

Fuuzetsu commented 9 years ago

http://userguide.icu-project.org/conversion/detection seems to say that ICU is able to make some guesses regarding encoding used but text-icu seems to not expose any such functionality which IMHO greatly impairs its usefulness.

Fuuzetsu commented 9 years ago

FTR for now we're using charsetdetect-ae package along with comparing to aliases for this.

bos commented 9 years ago

Pull request welcome, I won't have time to implement this myself.

bos commented 7 years ago

27 implements this, and needs just a little reformatting.

vshabanov commented 2 years ago

27 merged and released:

https://hackage.haskell.org/package/text-icu-0.8.0/docs/Data-Text-ICU-CharsetDetection.html