Special letters in Url
# help-with-umbraco
b
Hi everyone, I am having an issue in Umbraco v8 where the name of a media item contains special Icelandic letters like í and ó. Now when I go into the media section and open the url there is works fine. The Url contains the special letters and can be opened. Example of a relative url I receive from the media section: media/fewfp31e/gabríel But if I have the image as an IpublishedContent and fetch the Url from there, the Url I receive is something like this: /media/fewfp31e/gabríel Anyone know of a way to fetch the Url correctly?
l
HttpUtility.HtmlDecode
should turn any encoded strings (like
íel
) back to their original version https://stackoverflow.com/a/1562382/1663868
k
/media/fewfp31e/gabríel
is not a valid URL. How exactly did you get that? I'm suspecting that if you get the URL the correct way, you won't need to do any manual decoding and re-encoding.
19 Views