We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

French chars not showing up in email send out

Captaindan
Captaindan asked
on
Medium Priority
256 Views
Last Modified: 2013-12-24
Hi,

Clients are telling me they can't see some french chars like é à ç in their email briefing we send out. I can see it fine but... Need to be able to replace é by &eacute in a field only when I send it out ( off a query). Because of the server on our end, the portal is ok.
Comment
Watch Question

CERTIFIED EXPERT

Commented:
something like?


<cfquery datasource="somedata" name="test">
select * from mydata
</cfquery>

<cfmail ...>
#replace(test.querystringenfrancais, "#chr(130)#", "&eacute")#
</cfmail>



Author

Commented:
Sorry, I should have been clearer. What I mean is that most french caracters are not showing up as they should. é à â etc...

Commented:
This may help.

<cfset messgae = SetEncoding(form.yourveriable, utf-8)>
<cfmail...>
#message#
</cfmail>

refrence: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functa79.htm#wp4567695

Commented:
you could also try putting these in your application file:

<CFCONTENT TYPE="text/html; charset=utf-8">
<cfprocessingdirective pageencoding="utf-8">
<cfset setEncoding("URL", "utf-8")>
<cfset setEncoding("Form", "utf-8")>
Commented:
I need to correct myself, put these in the application.cfm
<CFCONTENT TYPE="text/html; charset=utf-8">
<cfset setEncoding("URL", "utf-8")>
<cfset setEncoding("Form", "utf-8")>

And if your using a database put this line on any page that queries the database
<cfprocessingdirective pageencoding="utf-8">

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.