Refreshing url control pages

Posted on
Tue Aug 08, 2017 12:59 pm
mortenkols offline
Posts: 198
Joined: Oct 29, 2014
Location: Norway

Refreshing url control pages

Hello.

Im trying to refresh a url on a control page, but I get this error in the log.
I guess its because of the letters ä and ö. How can I fix this?

8. aug. 2017, 20.37.27
WebServer https://www.yr.no/sted/Sverige/Västerbotten/Joesjö//meteogram.png load error: 'ascii' codec can't encode character u'\xe4' in position 19: ordinal not in range(128)
WebServer https://www.yr.no/sted/Sverige/Västerbotten/Joesjö//meteogram.png load error: 'ascii' codec can't encode character u'\xe4' in position 19: ordinal not in range(128)
WebServer https://www.yr.no/sted/Sverige/Västerbotten/Joesjö//meteogram.png load error: 'ascii' codec can't encode character u'\xe4' in position 19: ordinal not in range(128)
Error (client) control page image URL invalid: https://www.yr.no/sted/Sverige/Västerbotten/Joesjö//meteogram.png
Error (client) control page image URL invalid: https://www.yr.no/sted/Sverige/Västerbotten/Joesjö//meteogram.png
Attachments
Skjermbilde 2017-08-08 kl. 20.54.30.png
Skjermbilde 2017-08-08 kl. 20.54.30.png (42.73 KiB) Viewed 2060 times

Posted on
Tue Aug 08, 2017 1:33 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Refreshing url control pages

Is the double slash right before meteogram.png supposed to be there? Doubt that's the problem but remove it anyway and try it.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Aug 08, 2017 1:58 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Refreshing url control pages

Actually, unicode characters aren't valid in a URI though they are legal in an IRI. You need to escape your unicode characters and it should work.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Aug 08, 2017 2:13 pm
mortenkols offline
Posts: 198
Joined: Oct 29, 2014
Location: Norway

Re: Refreshing url control pages

How do I escape unicode characters?

Posted on
Tue Aug 08, 2017 2:20 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Refreshing url control pages

Most browsers will do it for you when copy/enter the URL in, then copy it out to the clipboard. Try using:

Code: Select all
https://www.yr.no/sted/Sverige/V%C3%A4sterbotten/Joesj%C3%B6/meteogram.png

Image

Posted on
Tue Aug 08, 2017 2:35 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Refreshing url control pages

Sadly, Safari doesn't. Chrome does however.

You can use this page to encode strings that have special characters - so just paste in the string with the unicode characters (not the entire URL) and it'll convert it.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 09, 2017 7:31 am
mortenkols offline
Posts: 198
Joined: Oct 29, 2014
Location: Norway

Re: Refreshing url control pages

Thanks. Works now

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests