Skip to main content
Participant
November 20, 2010
Question

Conflict between multipart/form-data and iso-8859-1

  • November 20, 2010
  • 1 reply
  • 1076 views

In a Form tag there is a conflict between  enctype="multipart/form-data" and french character set.

The following code:  method="post" enctype="multipart/form-data" accept-charset ="iso-8859-1" allows me to include a file (input type="file") but french characters (accents) are replaced by "?". If I replace the code as follows: method="post" enctype="application/x-www-form-urlencoded"  the french characters works but the input type="file" won't work.

In the update table I have: nom = <cfqueryparam cfsqltype="cf_sql_varchar" value="#wordquoteconvert(nom)#"> I use SQL Express.

Any idea?

Thanks

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    November 21, 2010

    What about accept-charset="UTF-8"?

    gjfdswAuthor
    Participant
    November 21, 2010

    I tried with "UTF-8" and even with "UTF-16". So far the only solution would be to split the form but I hope there is another way.

    Thanks