0
我试图在一个图像的URI传递到UriImageSource.Uri但URI字符串内包含20%它获取错误地转换成白空间Xamarin解析字符串URI替换%20以空格
即
http://domain.co.uk/Category%20Name/Products/Product-image.jpg
当此获得通过我的功能
UriImageSource UriImageSource = new UriImageSource();
UriBuilder Builder = new UriBuilder(productURL);
UriImageSource.Uri = Builder.Uri;
return UriImageSource;
的UriImageSource.Uri被转换为
解析http://domain.co.uk/Category Name/Products/Product-image.jpg
然后,这是在我的应用程序中抛出一个错误,因为该URL包含%20,而不是空白...任何帮助,非常感谢。谢谢!
%20 == 32,这是 “空格” 字符。这些请求应该是等效的 – Jason
现在排除错误,谢谢Jason和@idenardi –