8859-1 is a character set not an encoding (like UTF-8). If you were going to do something along those lines, you would always use UTF-8 and flip the charset used to something else. i.e. 8859-1 to Shift-JIS or 8858-1 to 8859-2.
Think of UTF-8,16, etc as the telephone line and the charset as the conversation over it. For DBCS(double byte character sets), you'll need UTF-16 (double byte telephone line) to properly handle the charset. See this article: http://www.phillipholmes.com/?p=46 With that said, in CF5, you have to either create the neo object or you can accomplish the same thing through cfhttp (which is kind of a hack). Warmest Regards, Phillip B. Holmes http://www.phillipholmes.com -----Original Message----- From: Pete Freitag [mailto:[EMAIL PROTECTED] Sent: Friday, November 17, 2006 11:12 AM To: CF-Talk Subject: Re: Convert UTF-8 to ISO-8859-1 under CF5 Hi Claude, You might be able to use java to do this... http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#getBytes(java. lang.String) I haven't tested this but something like this may work: <cfset str = CreateObject("java", "java.lang.String")> <cfset str.init(cfhttp.filecontents)> <cfset byteArray = str.getBytes("ISO-8859-1")> <cfset newString = CreateObject("java", "java.lang.String")> <cfset newString.init(byteArray)> -- Pete Freitag http://foundeo.com/ - ColdFusion Consulting & Products http://petefreitag.com/ - My Blog http://spendfish.com/ - Fish for Deals On 11/17/06, Claude Schneegans <[EMAIL PROTECTED]> wrote: > Hi, > > I have a site on a CF5 server that imports some page by CFHTTP from > another site > under CFMX (not under my control). > Unfortunately, this site sends its content in UTF-8 format. > Is there any tool somewhere, usable under CF5, to convert UTF-8 text to > ISO-8859-1? > > -- > _______________________________________ > REUSE CODE! Use custom tags; > See http://www.contentbox.com/claude/customtags/tagstore.cfm > (Please send any spam to this address: [EMAIL PROTECTED]) > Thanks. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260893 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

