^
pop-out codeShare
^
<cfif REFindNoCase (
'^<\?xml[^?] encoding=
"([^"
] )
"[^?]*\?>
',
trim ( cfhttp.fileContent ) ) gt
0
>
<cfset charset = REReplaceNoCase (
trim ( cfhttp.fileContent ),
'^<\?xml[^?] encoding="([^
"] )"
[^?]*\?>.*',
'\1'
/>
</cfif>