Google Map中的unicode问题 [英] Problem with unicode in Google map

查看:150
本文介绍了Google Map中的unicode问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Get Dicrections服务将Webbrowser控件用于Google地图(从地址:越南胡志明市Tan Binh区PhổQuang,phường2,ph tong 14,到胡志明市NguyễnHuệ,BếnghéRex Hotel,越南).

此处的代码:

I use Webbrowser control for Google map with Get Dicrections service (From addr: 14 Phổ Quang, phường 2, Tan Binh District, Ho Chi Minh City, Vietnam to Rex Hotel, Nguyễn Huệ, Bến Nghé, Ho Chi Minh City, Vietnam).

Here''s code:

Private Sub Mygooglemap_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim Linkweb As String = "http://maps.google.com/maps?&saddr="
        Dim add_start As String ="14 Phổ Quang, phường 2, Tan Binh District, Ho Chi Minh City, Vietnam"
        Dim add_end  As String ="Rex Hotel, Nguyễn Huệ, Bến Nghé, Ho Chi Minh City, Vietnam"
        add_start = Replace(add_start, " ", "+")
        add_end = Replace(add_end, " ", "+")
        Linkweb = Linkweb & add_strat & "&daddr=" & add_end
        WebBrowser1.Navigate(Linkweb, False)
End Sub


但是Google Map的视图无法在地址A和地址B中显示unicode,因此地图确实可以正确显示.

请帮忙.


But View of Google Map can not display unicode in Addr A and Addr B, then map does show exactly.

Please, help.

推荐答案

将编码设置为适当的值,例如
Set the Encoding to an appropriate value, e.g.
WebBrowser1.Document.Encoding = "UTF-8"


这篇关于Google Map中的unicode问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆