C#.net中当地址有中文时,图片无法显示解决方法

原文发布时间为:2008-11-05 —— 来源于本人的百度文章 [由搬家工具导入]

搞了半天都无法正常显示图片,
string path = Server.MapPath("." + "\folder\" + Server.UrlEncode ("照片.jpg");

解决方法:Server.MapPath()一加不就是本地绝对路径了嘛,去掉改成相对路径
string path = "~\folder\照片.jpg";

原文地址:https://www.cnblogs.com/handboy/p/7148461.html