Professional Web Applications Themes

MX 7 and CGI special character problem - Coldfusion - Getting Started

The umlauts have stopped working in our application since upgrading to Coldfusion MX 7 and Apache 2.0.43. A html form is sent to coldfusion. A form field contains an ? (a-umlaut). Displayed from coldfusion the character is always correct. This form field is then sent with method=POST in a CFHTTPPARAM formfield to a cgi-program (written in C) on Solaris 2.8 (http server is Apache 2.0.43). In the cgi-script the umlaut-character arrives as %E4 if cht = ISO-8859-1 %C3%A4 if cht = utf-8 Solaris /etc/default/init has LC_CTYPE=en_US.ISO8859-1 and I suppose this cannot be changed because of other applications running on the ...

  1. #1

    Default MX 7 and CGI special character problem

    The umlauts have stopped working in our application since upgrading to
    Coldfusion MX 7 and Apache 2.0.43.

    A html form is sent to coldfusion. A form field contains an ? (a-umlaut).
    Displayed from coldfusion the character is always correct. This form field is
    then sent with method=POST in a CFHTTPPARAM formfield to a cgi-program (written
    in C) on Solaris 2.8 (http server is Apache 2.0.43). In the cgi-script the
    umlaut-character arrives as

    %E4 if cht = ISO-8859-1
    %C3%A4 if cht = utf-8

    Solaris /etc/default/init has LC_CTYPE=en_US.ISO8859-1 and I suppose this
    cannot be changed because of other applications running on the Sun box.

    With Coldfusion 4.5 and Apache 1.3 the umlaut was received as an umlaut i.e.
    "?".

    I have played with
    <cfcontent type="text/html cht=ISO-8859-1">
    <cfprocessingdirective pageencoding="ISO-8859-1">
    but cannot get a real "?" through to the cgi.

    Other tests
    CF4.5 -> Apache 1.3 works
    CF4.5 -> Apache 2.0 works
    MX 7 -> Apache 1.3 works
    MX 7 -> Apache 2.0 converts the umlaut to %E4 or %C3%A4

    Am I doing something wrong? Can the cgi not work any more as it did before?
    How could I try to resolve this problem?

    Looking for the string %E4 in the cgi-program would work in most cases, but it
    would be a bit risky if that field contains e.g. a financial instrument name
    "BOOM BANK 3YRS 2.5%E4/2004"

    Any help appreciated.
    Keimo

    Keimo Guest

  2. #2

    Default Re: MX 7 and CGI special character problem

    Forgot to add that in my httpd.conf I have

    AddDefaultCht ISO-8859-1
    Keimo Guest

Similar Threads

  1. Replies: 5
    Last Post: September 17th, 09:27 PM
  2. recognising a special character inside [^]
    By Jason Quek in forum PERL Miscellaneous
    Replies: 2
    Last Post: September 15th, 08:37 PM
  3. Special Character search lik
    By preetinder dhaliwal in forum Informix
    Replies: 1
    Last Post: August 27th, 04:17 AM
  4. Special character for SM?
    By designer in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 28th, 02:14 PM
  5. I need a special character....
    By E. T. Culling in forum Macromedia Fireworks
    Replies: 5
    Last Post: July 28th, 11:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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