Thanks Steve. I got another one: I have defined the encoding in the html header of a page using code : <meta http-equiv="content-type" content="text/html; charset=utf-8">
If I check Page Info in Firefox, it shows the encoding as utf-16LE. How come inspite of setting the encoding manually in the page header, the browser is using different ecoding? On Feb 16, 1:12 pm, "Steve Onnis" <[email protected]> wrote: > Nearly > > If you want to display it in the browser also you will have to set the > encoding on your output also. So both the cfhttp call and the browser > output need to have it set. > > If you need to output it to the browser also try something like > > <cfcontent type="text/html; UTF-16LE" /> > <cfoutput>#CFHTTP.FileContent##</cfoutput> > > Steve > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > > Of karan > Sent: Monday, 16 February 2009 1:07 PM > To: cfaussie > Subject: [cfaussie] Re: Remove from cfhttp.fileContent > > Cheers. Thanks Steve. That solved it. > > The way I understand it according to this > article:http://www.w3.org/International/O-charset.en.php, is that the server > and client need to agree on the encoding for the page to display > correctly. By using <cfhttp charset>, we are specifying it to our > server, what type of charset it is retrieving, which it then passes on > the browser. The browser then converts it to unicode for correct > display. Hope I have got it right :-). > > On Feb 16, 12:56 pm, "Steve Onnis" <[email protected]> wrote: > > If that’s your encoding try doing something like > > > <cfhttp charset="UTF-16LE" ..... > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] On > Behalf > > > Of karan > > Sent: Monday, 16 February 2009 12:53 PM > > To: cfaussie > > Subject: [cfaussie] Re: Remove from cfhttp.fileContent > > > It is UTF-16LE and I just realized the website I am pulling from has > > updated. Before it use to work fine and the encoding was UTF 8. Maybe > > this is the problem. Any comments Steve? > > > On Feb 16, 12:42 pm, "Steve Onnis" <[email protected]> wrote: > > > I would say its an encoding issue actually. Do you know what encoding is > > being used to create the content you are pulling down? > > > > -----Original Message----- > > > From: [email protected] [mailto:[email protected]] On > > Behalf Of karan > > > Sent: Monday, 16 February 2009 12:27 PM > > > To: cfaussie > > > Subject: [cfaussie] Remove from cfhttp.fileContent > > > > Hi all > > > > I am pulling .htm pages from a website and re-wrapping the content in > > > our page. The content displays fine in IE but in FF, a is inserted > > > after every letter. > > > > ISSUES: > > > 1) Wiki tells me that if FF can't understand a character, then it > > > inserts a (question mark). This leads me to think it might be a > > > compression issue, hence according to a post on Colfusion > > Muse:http://www.coldfusionmuse.com/index.cfm/2008/10/9/cfhttp-troubleshootin > > g, > > > I added some cfhttpparams. > > > > 2) Another thing is if I try to modify the cfhttp.fileContent using > > > Replace(), it doesn't work either, whereas if I do the same with > > > another test site, it works fine. > > > > Can anyone help me solve this one? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
