Category: character encoding

  • Announcing encoding-inspector

    First there was the encoding_sampler Gem Last November, I created the encoding_sampler Gem (RubyGems, github) to help find the desired encoding for a particular text file. From the Gem description: EncodingSampler helps solve the problem of what to do when the character encoding is unknown, for example when a user is uploading a file but has […]

  • 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 […]