Page 1 of 1

Refreshing url control pages

PostPosted: Tue Aug 08, 2017 12:59 pm
by mortenkols
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

Re: Refreshing url control pages

PostPosted: Tue Aug 08, 2017 1:33 pm
by jay (support)
Is the double slash right before meteogram.png supposed to be there? Doubt that's the problem but remove it anyway and try it.

Re: Refreshing url control pages

PostPosted: Tue Aug 08, 2017 1:58 pm
by jay (support)
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.

Re: Refreshing url control pages

PostPosted: Tue Aug 08, 2017 2:13 pm
by mortenkols
How do I escape unicode characters?

Re: Refreshing url control pages

PostPosted: Tue Aug 08, 2017 2:20 pm
by matt (support)
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

Re: Refreshing url control pages

PostPosted: Tue Aug 08, 2017 2:35 pm
by jay (support)
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.

Re: Refreshing url control pages

PostPosted: Wed Aug 09, 2017 7:31 am
by mortenkols
Thanks. Works now