URL Encoding in Dynamics NAV

marvinqmarvinq Member Posts: 69
edited 2014-01-28 in NAV Three Tier
Hi,

Anyone who knows how to URLEncode a TEXT in Dynamics NAV 2009 SP1?

Thanks

Comments

  • TListTList Member, Microsoft Employee Posts: 7
    You can do it manually by replacing characters as defined here: http://www.w3schools.com/tags/ref_urlencode.asp

    You can also use .NET interop, it's sometimes easier:
    VAR
      HttpUtility@1010000 : DotNet "'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.System.Web.HttpUtility";
    BEGIN
      MESSAGE(HttpUtility.UrlEncode('malinový koláč'));
    END;
    
Sign In or Register to comment.