Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
VB
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

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

Please, help.
Posted
Updated 29-Sep-12 15:55pm
v3
Comments
Sandeep Mewara 30-Sep-12 3:06am    
Did you try encoding the unicode?

1 solution

Set the Encoding to an appropriate value, e.g.
C#
WebBrowser1.Document.Encoding = "UTF-8"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900