1

I'm writing an app that must be able to accept more than just the English alphabet.

Everything I search for points me to error validation messages, which I already have set up for translation; that's no problem.

Does anyone know of a resource in ruby/rails that defines acceptable alphabets by language/region/country?

1 Answer 1

0

Rails accepts all characters. In your code, you must to add "# encoding: UTF-8" at the top of your ruby files.

Sign up to request clarification or add additional context in comments.

2 Comments

I'm accepting i18n data just fine. I store it in the database great. I'm looking for something along the lines of what goes after validate_format_of :last_name, etc...
You want to accept all characters in all cases? A standard regular expression should work. Could you give an example of what should be valid and what should not?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.