FromRoute only partially decodes certain values (original) (raw)

The problem I’m having is that we have a code that looks like this:

[FromRoute(Name = "event_name")]
public string EventName
{
    get
    {                
        return _eventName;
    }

The following URL gets passed to it:
something.com/events/0008%20-%2012%2F3%2F2018Existe%20um%20inventario%20incompleto%2C%20deseja%20continar%20%3F%20(Sim)

Is there a workaround for that?

<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />

#region Assembly Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// .nuget\packages\microsoft.aspnetcore.mvc.core\2.1.3\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Core.dll
#endregion