A Ruby library to deal with encodings, no matter if you're on 1.8 or 1.9, JRuby or Rubinius, if you have a working iconv or not, it chooses the best way for you to handle String encodings.
At the moment, Coder only cleans strings for you. I plan to add string conversion and encoding detection later.
clean_string = Coder.clean(dirty_string)
You can also specify the encoding:
clean_string = Coder.clean(dirty_string, 'UTF-8')
You can also modify a string in-place:
Coder.clean! some_string
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request