Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a large number of documents in the media section that use unicode characters e.g. ċ, ġ, ħ and ż. Umbraco lets my users upload these without issue. However, when I try to render a link via razor those characters are being replaced by andNNN where NNN is the numeric code for the character. That is, a filename like this
is rendered as:
Here's the code I'm using to render the link:
IPublishedContent doc = Model.Content.GetPropertyValue<IPublishedContent>("document");
<table class="col-md-12 table table-striped table-bordered">
<td class="col-md-3 col-xs-6"> </td>
<td class="col-md-9 col-xs-6"><a href="@doc.Url" target="_blank">@Umbraco.Field("#Download.Document")</a></td>
I've tried turning off Ascii replacements in URL via umbracoSettings.config
<urlReplacing removeDoubleDashes="true" toAscii="false">
but this doesn't seem to have had any effect on this issue and right now I'm at a loss as to where the problem is occurring. Is it my code, umbraco config, or maybe an IIS setting?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted