[英]Geonames database encoding for cyrillic symbols
I have problem with geonames.org database imported into MySQl. 我将导入MySQl的geonames.org数据库遇到问题。 I use utf8_general_ci on table 'alternatenames', but have incorrect encoding on cyrillic names (for example, objects like Тур).
我在表'alternatenames'上使用utf8_general_ci,但是对西里尔字母(例如Тур之类的对象)的编码不正确。 Is there some good practice to make characters appear correctly?
是否有一些好的做法可以使字符正确显示?
I solved this problem. 我解决了这个问题。 I used utf8mb4 encoding (new standard of geonames encoding) instead of simple utf8.
我使用utf8mb4编码(地理名称编码的新标准),而不是简单的utf8。 All cyrillic characters are correct now.
所有西里尔字母都正确了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.