大型公司建站,专业新站整站快速排名公司,psd转wordpress模板,手机网站 数据库备注#xff1a;有时候我们会莫名其妙遇到一些特殊字符#xff1a; 这些字符在网页上能正常显示#xff0c;但是在APP特殊情景并不识别这些字符#xff1a;
如#xff1a; 这个其实是单引号:
百度后发现#xff0c;它其实是HTML特殊字符的十进制编码#…备注有时候我们会莫名其妙遇到一些特殊字符 这些字符在网页上能正常显示但是在APP特殊情景并不识别这些字符
如#39; 这个其实是单引号:
百度后发现它其实是HTML特殊字符的十进制编码下面是一些转码方法和效果图 以下代码直接直接调试 class Program{static void Main(string[] args){string test test#39;abc;string a HttpUtility.HtmlDecode(test);Console.WriteLine(a);test test#915;abc;a HttpUtility.HtmlDecode(test);Console.WriteLine(a);a HttpUtility.HtmlDecode(a nbsp; r);Console.WriteLine(a);Console.Read();}} 效果图 其他
HTML特殊字符编码对照表
特殊符号命名实体十进制编码特殊符号命名实体十进制编码特殊符号命名实体十进制编码ΑAlpha;#913;ΒBeta;#914;ΓGamma;#915;ΔDelta;#916;ΕEpsilon;#917;ΖZeta;#918;ΗEta;#919;ΘTheta;#920;ΙIota;#921;ΚKappa;#922;ΛLambda;#923;ΜMu;#924;ΝNu;#925;ΞXi;#926;ΟOmicron;#927;ΠPi;#928;ΡRho;#929;ΣSigma;#931;ΤTau;#932;ΥUpsilon;#933;ΦPhi;#934;ΧChi;#935;ΨPsi;#936;ΩOmega;#937;αalpha;#945;βbeta;#946;γgamma;#947;δdelta;#948;εepsilon;#949;ζzeta;#950;ηeta;#951;θtheta;#952;ιiota;#953;κkappa;#954;λlambda;#955;μmu;#956;νnu;#957;ξxi;#958;οomicron;#959;πpi;#960;ρrho;#961;ςsigmaf;#962;σsigma;#963;τtau;#964;υupsilon;#965;φphi;#966;χchi;#967;ψpsi;#968;ωomega;#969;ϑthetasym;#977;ϒupsih;#978;ϖpiv;#982;•bull;#8226;…hellip;#8230;′prime;#8242;″Prime;#8243;‾oline;#8254;⁄frasl;#8260;℘weierp;#8472;ℑimage;#8465;ℜreal;#8476;™trade;#8482;ℵalefsym;#8501;←larr;#8592;↑uarr;#8593;→rarr;#8594;↓darr;#8595;↔harr;#8596;↵crarr;#8629;⇐lArr;#8656;⇑uArr;#8657;⇒rArr;#8658;⇓dArr;#8659;⇔hArr;#8660;∀forall;#8704;∂part;#8706;∃exist;#8707;∅empty;#8709;∇nabla;#8711;∈isin;#8712;∉notin;#8713;∋ni;#8715;∏prod;#8719;∑sum;#8722;−minus;#8722;∗lowast;#8727;√radic;#8730;∝prop;#8733;∞infin;#8734;∠ang;#8736;∧and;#8869;∨or;#8870;∩cap;#8745;∪cup;#8746;∫int;#8747;∴there4;#8756;∼sim;#8764;≅cong;#8773;≈asymp;#8773;≠ne;#8800;≡equiv;#8801;≤le;#8804;≥ge;#8805;⊂sub;#8834;⊃sup;#8835;⊄nsub;#8836;⊆sube;#8838;⊇supe;#8839;⊕oplus;#8853;⊗otimes;#8855;⊥perp;#8869;⋅sdot;#8901;⌈lceil;#8968;⌉rceil;#8969;⌊lfloor;#8970;⌋rfloor;#8971;◊loz;#9674;♠spades;#9824;♣clubs;#9827;♥hearts;#9829;♦diams;#9830; nbsp;#160;¡iexcl;#161;¢cent;#162;£pound;#163;¤curren;#164;¥yen;#165;¦brvbar;#166;§sect;#167;¨uml;#168;©copy;#169;ªordf;#170;«laquo;#171;¬not;#172; shy;#173;®reg;#174;¯macr;#175;°deg;#176;±plusmn;#177;²sup2;#178;³sup3;#179;´acute;#180;µmicro;#181quot;#34;lt;#60;gt;#62; #39;
更多专业前端知识请上
【猿2048】www.mk2048.com