Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个应用程序,它必须能够接受的不仅仅是英文字母。
我搜索的所有内容都指向我已经为翻译设置的错误验证消息;那没问题。
有谁知道 ruby/rails 中按语言/地区/国家定义可接受的字母的资源?
Rails 接受所有字符。在您的代码中,您必须在 ruby 文件的顶部添加“# encoding: UTF-8”。