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:260883
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to