77家的会客2010

日归档: 2005年06月20日 | 记录数: 1
cfmx中中英文字长的计算
Weather:热极了~
<cfset s="abc">
<cfoutput>#len(s.getBytes())#</cfoutput>

得到 s 字串长度为 3

<cfset s1="股份有限公司123">
<cfoutput>#len(s1.getBytes())#</cfoutput>

得到 s1 字串长度为 15