cfhttp and accentued characters

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Re: cfhttp and accentued characters

    Hello-
    I'm also having this problem. We're using ColdFusion MX 6.1 as a front-end to
    a MySQL database. The database contains extended ASCII characters in one of its
    text fields (for example, accented vowels). ColdFusion doesn't seem to display
    these correctly however.

    I've tried these CF tags as suggested in other posts:

    <cfheader name="Content-Type" value="text/html; charset=ISO-8859-1">
    <cfcontent type="text/html; charset=iso-8859-1">
    <cfprocessingdirective pageEncoding="ISO-8859-1">

    as well as using a META content-type directive in the HTML-output portion of
    my CF page:

    <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=ISO-8859-1">

    No luck. The extended characters display as question marks on CF output, but
    display correctly when I look at the actual SQL data with PHPMyAdmin.

    I'm not making a CFHTTP request, but rather outputting from a DB query, so I'm
    guessing that CFHTTP won't help me?

    The CF documentation leads me to believe that some settings might have to be
    changed in the application.cfm file? (which we don't have access to,
    unfortunately, since this is on a shared server). Any thoughts would be greatly
    appreciated.

    - Tom Tedeschi

    tomtedeschi Guest

  2. Similar Questions and Discussions

    1. CFHTTP
      Hello, I need to send data from a CF page to an asp.net page for processing via a URL string. The ASP page takes three parameters. Those being...
    2. CFHTTP WEB AUTHENTICATION
      Hi, I just want to parse a site which needs a web authentication. I've tried it with cfhttp username and password, but I always get the ...
    3. CFHTTP help
      We have an in-house built publication system that creates .htm files from database content. For a specific project, I need to modify the way that...
    4. how to read japanese characters (multilingual characters) from a text file and save them in Access database ???
      HI All i m trying to read a text file, having some japanese characters and saved as UTF-8 encoding. I m using ASP,FSO ... my code is below,...
    5. Numeric characters after alphabetic characters sorting varchar2 fields
      Hi! Why numeric characters are placed after alphabetic characters sorting varchar2 fields? Example: AAA BBB 111 FFF XXX
  3. #2

    Default Re: cfhttp and accentued characters

    Was able to answer my own question:

    In CF-Admin, set the connectionstring for the MySQL database under "advanced
    settings" to:

    useUnicode=true&characterEncoding=ISO-8859-1

    If you're on a shared host system, you might have to have a tech. support
    person do this for you. Also, it's not necessary, but doesn't hurt to create an
    Application.cfm file in the root directory of your CF application with the
    following contents:

    <cfapplication name="YOURAPPLICATIONNAMEHERE">
    <cfcontent type="text/html; charset=ISO-8859-1">
    <cfscript>
    setencoding("form", "ISO-8859-1");
    setencoding("url", "ISO-8859-1");
    </cfscript>
    <cfprocessingdirective pageencoding="iso-8859-1">

    Replace YOURAPPLICATIONNAMEHERE with something else, of course...

    :-)

    tomtedeschi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139