2 Replies Latest reply on Nov 26, 2007 5:54 AM by Newsgroup_User

    CFHTTP and Character Set (special characters)

    plarts Level 1
      I use a CFHTTP to return a page, and filter the content.
      I have it correctly, But special chacaters are not displayed correctly.

      The called page seems to work with UTF8 : it has this in the header :
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">

      So I added in my application.cfm :
      <cfprocessingdirective pageEncoding="UTF-8">
      <cfcontent type="text/html; charset=UTF-8">
      <cfset setEncoding("URL", "UTF-8")>
      <cfset setEncoding("FORM", "UTF-8")>

      And I also added in my cfm files , in the header :
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">

      I still have the same problem. I do not see where is the problem, and what to do.
      I send a "à" to the remote page, and it returns a "Ã"

      Thanks for any help,
      Pierre.


        • 1. Re: CFHTTP and Character Set (special characters)
          Daverms Level 3
          Hi,

          You may try this free CustomTag avaliable @ Adobe Exchange,

          CF_Convertchr
          • 2. Re: CFHTTP and Character Set (special characters)
            Level 7
            plarts wrote:
            > I use a CFHTTP to return a page, and filter the content.
            > I have it correctly, But special chacaters are not displayed correctly.

            and did you set the charset option on cfhttp?

            > The called page seems to work with UTF8 : it has this in the header :
            > <meta http-equiv="content-type" content="text/html; charset=UTF-8">

            but is it utf-8?

            > And I also added in my cfm files , in the header :
            > <meta http-equiv="content-type" content="text/html; charset=UTF-8">

            ignored by cf.

            > I still have the same problem. I do not see where is the problem, and what to
            > do.

            is this happening directly you output w/cfhttp.filecontent? or are you doing
            something to it first?