How to encode/decode url strings in an UWP App
问题 I'm building a UWP App which communicates with a Web-Api. At some Point I'm sending a string in the url to the Web-Api which can be manipulated by the user. Because of that the string can include characters which could do evil things to the Web-Api. For example: This is my UserController [Route("api/user/{uid}")] public User GetUser(string uid) { return userRepository.GetByUid(uid); } For the sake of this example we assume that the user can put in the uid manually in a textbox. Now if he puts