简体   繁体   English

Google的地址解析器未对特殊字符进行编码

[英]Google's geocoder not encoding special characters

I am developing a geocoder using Google's geocoder API, and I am having difficulties passing an address with special characters into my personal geodatabase (.mdb) 我正在使用Google的geocoder API开发地理编码器,并且在将带有特殊字符的地址传递到我的个人地理数据库(.mdb)时遇到困难

Here is the original address: 这是原始地址:

96 Rue Gâtineau, 17150 Saint-Georges-des-Agoûts, France 96 RueGâtineau,17150Saint-Georges-des-Agoûts,法国

And here is what gets inserted into my geodatabse: 这是插入到我的地理数据库中的内容:

数据库中的编码错误,请参见图像

I have tried setting the charset in my .HTML file to "ISO-8859-15" as I mainly need English and French characters encoded. 我尝试将.HTML文件中的字符集设置为“ ISO-8859-15”,因为我主要需要对英语和法语字符进行编码。

I also changed the charset in my .ASP file to "<%Response.Charset="ISO-8859-15"%>", but neither of these seem to help with the special characters. 我也将.ASP文件中的字符集更改为“ <%Response.Charset =“ ISO-8859-15”%>“,但这些字符似乎都无法帮助特殊字符。

Any advice? 有什么建议吗?

Why you don't use UTF-8? 为什么不使用UTF-8?

A lot of database are in UTF-8 UTF-8中有很多数据库

Take a look also at the default encoding in your database. 还要看看数据库中的默认编码。 In my experience, the encoding needs to match throughout. 以我的经验,编码需要始终匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM