Web.SiteLogoUrl打破了特殊字符

时间:2015-03-30 16:57:03

标签: sharepoint

当我设置CSS&使用Microsoft.Sharepoint.Client.Web的徽标属性,SiteLogoUrl在使用特殊字符时会中断。它在Web中获取UrlEncoded。有谁知道怎么解决这个问题?

 web.AlternateCssUrl = web.ServerRelativeUrl + "/SiteAssets/custom.css";
 web.SiteLogoUrl = web.ServerRelativeUrl + "/SiteAssets/Nike_Swoosh_Logo_BK.png"; 
 web.Update();
 web.Context.ExecuteQuery();

enter image description here

1 个答案:

答案 0 :(得分:0)

在编写字符串之前,您是否尝试过使用HttpUtility.UrlEncode来修复它的编码?

https://msdn.microsoft.com/en-us/library/zttxte6w(v=vs.110).aspx