Assuming the special characters are unicode characters, you will need to encode the string in base64 format and use it in the subject line. Like this,
<cfset strSubject="Demande d'chantillons supplémentaires"> <cfset strSubject=ToBase64(strSubject, "utf-8")> <cfmail from=" test@test.com " to=" test@test.com " subject="=?utf-8?B?#strSubject#?=" type="html"> #testText# </cfmail>
The subject line should be in the format =?<charset>?<encoding>?<encoded text>?=
Wanted ? and = .
MIME - coded word
" charset " can be any character set registered with IANA. typically it will be the same encoding as the message body.
" encoding " can be either "Q" denoting Q encoding, which is similar to the encoded quotation mark encoding, or "B" denoting base64 encoding.
"Encoded text" - a text-encoded Q or base64.
source share