我有一个结果字符串,有时候保存非ascii值。这些非ASCII值导致麻烦,所以我需要检查它们在结果字符串中的存在。 我试着用这两种方法 if (regexpi(result , ^\s\x{20}-\x{7e}))
display('non ascii');
end
和 if any(result < 128)
else
display('non ascii');
end
,但没
我正在构建一个需要列出国家,城市的Rails应用程序。城市至少应该包含10万人。我找到了来自Wikipedia的数据。但我需要澄清城市名称中包含一些特殊字母。 Durrës - ë
Vicente López - ó
São Paulo - ã
我搜索了一下,发现这些都是重音音节。 我的问题是 Can I directly insert these values into the data