Created
February 29, 2012 19:29
-
-
Save ondrejbartas/1943804 to your computer and use it in GitHub Desktop.
Translate diacritics and unicode chars to ASCII
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding : utf-8 -*- | |
require "active_support" | |
require 'active_support/inflector' | |
puts ActiveSupport::Inflector::transliterate("Nějaký ten string ščřžýáíé") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment