Dim test As StringUtils
Dim url As String
Log("the url not_coded" & "http://www.novasoftware.se/ImgGen/schedulegenerator.aspx?format=png&schoolid=52550/sv-se&type=1&id={" & main_map_saved.Get("the_class_code") & "}&period=&week=" & week_number_with_days & "&mode=0&printer=0&Colors=32&head=0&clock=0&foot=0&day=" & which_day_code_to_use & "&width=" & days_use_this_width_when_downloading & "&height=" & use_this_height_when_downloading & "&maxwidth=" & days_use_this_width_when_downloading & "&maxheight=" & use_this_height_when_downloading)
url = test.EncodeUrl("http://www.novasoftware.se/ImgGen/schedulegenerator.aspx?format=png&schoolid=52550/sv-se&type=1&id={" & main_map_saved.Get("the_class_code") & "}&period=&week=" & week_number_with_days & "&mode=0&printer=0&Colors=32&head=0&clock=0&foot=0&day=" & which_day_code_to_use & "&width=" & days_use_this_width_when_downloading & "&height=" & use_this_height_when_downloading & "&maxwidth=" & days_use_this_width_when_downloading & "&maxheight=" & use_this_height_when_downloading,"ISO-8859-1")
download_webview.LoadUrl(url)
Log("the url encoded: " & url)