Tag: encoding_sampler

  • Ruby file encoding determination with EncodingSampler gem

    Is there a good automatic way to determine file encoding? If you have had to deal with importing user data from text files, you’ll know a couple things about character encodings: Using the wrong encoding to interpret the file is disastrous.  Once you start to notice this, you’ll see it all over the web. Users have no…