Hi Dave, I've done both of those things. My CFHTTP request has the charset="utf-8" parameter on it btw. On the rogue box when saving the cfhttp output to a file it is still mangled. There is also a json response option from the API and that too does the same to the data.
This the cfhttp header output: Charset [empty string] ErrorDetail [empty string] Filecontent A CFHttp.Filecontent variable is not created if a file path is specified. Header HTTP/1.1 200 Content-Type: application/xml Date: Fri, 17 Jan 2014 20:15:50 GMT Server: Microsoft-IIS/7.0 Content-Length: 2271 X-Powered-By: PHP/5.3.27 X-Powered-By: ASP.NET Mimetype application/xml Responseheader struct Content-Length 2271 Content-Type application/xml Date Fri, 17 Jan 2014 20:15:50 GMT Explanation [empty string] Http_Version HTTP/1.1 Server Microsoft-IIS/7.0 Status_Code 200 X-Powered-By struct 1 PHP/5.3.27 2 ASP.NET Statuscode 200 Text NO I'm starting to wonder if this may be a slight difference in CF/Java/JVM versions on the two boxes? They are all slightly different versions. -----Original Message----- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: 17 January 2014 19:48 To: cf-talk Subject: Re: UTF8 encoding issues on response from HTTP request > I am calling a simple HTTP API using CFHTTP. If I dump the XML which I > get from the response immediately after on one server the output is ok, but on the other the unicode characters are getting mangled. > > i.e. médico becomes médico > > I have called the API from a brand new IIS application with just the > HHTP request and the CFoutput of the CFHTTP filecontent and that's what happens. > > So something like: > > <cfhttp url="#myURL#"> > <cfoutput>#cfhttp.filecontent#</cfoutput> > > I have tried all the things you do to deal with UTF-8 encoding, but > the fact that it only happens on one server makes me think it's a setting in CFadmin or Jrun causing the issue. Well, this could be one of two things: - the problem server is fetching the file wrong, or - it's displaying the output wrong. I'd first change the CFHTTP to save the results to a file, then open the file and see what's in it. Also, I'd make sure that CF is actually sending UTF-8 output. What do you see in your HTTP response headers? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357476 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm