httpencode编码
httpencode编码
uses System.NetEncoding
var s: string := TNetEncoding.URL.Encode('123'); //123 var s2: string := TNetEncoding.URL.Encode('abcd'); //abcd var s3: string := TNetEncoding.URL.Encode('ab1cd2'); //ab1cd2 var s4: string := TNetEncoding.URL.Encode('汉字a2'); //%E6%B1%89%E5%AD%97a2 var s5: string := TNetEncoding.URL.Decode('%E6%B1%89%E5%AD%97a2'); //汉字a2
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/11227838.html