On 11/29/06, Markus Weber <[EMAIL PROTECTED]> wrote: > Hi guys, > > i have the following simple code: > > -------------------------------------------------------- > <cfsavecontent variable="sTmpMailContent"> > À Á á ý ò ë Ç > </cfsavecontent> > > <cfscript> > sTmpMailContent = Replace(sTmpMailContent,chr(192),'À','all'); > sTmpMailContent = Replace(sTmpMailContent,chr(193),'Á','all'); > </cfscript> > > <cfoutput>#sTmpMailContent#</cfoutput> > > -------------------------------------------------------- > > It works fine on Windows but can´t find the characters on Linux. > > What´s the problem?
The server's most likely storing the accented characters as something other than chr(192), chr(193), etc., so CF can't match them correctly. I encountered a similar problem with one of our Spanish language sites. It turned out that the accented characters were being totally stripped out or encoded wrongly during file transfer to the (SLES 9.1) server (using Dreamweaver's SFTP feature). We ran into several other odd issues with this type of character, depending on how we set the doctype and character encoding, and eventually just used &...; encoding. Our solution probably isn't what you need, but this may give you an idea where to look. -- "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." - Benjamin Franklin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262877 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4