Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Location code 26

0 views
Skip to first unread message

jdeline

unread,
Feb 3, 2005, 4:30:50 PM2/3/05
to
We're running CF 5.0 Enterprise edition on Win2000 server. We have been
getting the dreaded Location Code 26 error in two places in the code. Hot fix
hf29140 has been installed, that supposedly addresses the known problem in
UCase, LCase and Trim when the string contains ASCII characters 128 or greater
(e.g., copyright symbol). These errors, however, are produced in a <CFIF> tag
when testing a string containing ASCII 128 or greater.

The code below shows the original line of code and the fix for one of the two
problems. The other is similar.

My question is this: Is this a known issue, the failure of <CFIF> to properly
handle such strings?

TIA for your reply.

<!--- This fails when the string is "? 2002 Bee-lieve Product Concept Mfg.,
Inc." --->
<cfif CPYRT_TXT GT ""><font face="arial, geneva"
size="1">#Trim(CPYRT_TXT)#</font><br></cfif>

<!--- Removing >127 ASCII characters from the string solves the problem --->
<CFSET cpyrt = REReplace(CPYRT_TXT, "[#Chr(128)#-#Chr(255)#]", "", "ALL")>
cfif cpyrt GT ""><font face="arial, geneva"
size="1">#Trim(CPYRT_TXT)#</font><br></cfif>

0 new messages