Skip to main content
Inspiring
November 23, 2009
Question

decode UTF-8 to ISO-8859-1

  • November 23, 2009
  • 2 replies
  • 3657 views

I am using the Google Maps API, it return in utf-8,

so for some countries, caracters are wrong,

My server is ISO-8859-1

So, how to convert the result from utf-8 to iso-8859-1 ?

I tried :

<cfprocessingdirective pageEncoding="UTF-8">
<cfcontent type="text/html; charset=UTF-8">
<cfset setEncoding("URL", "UTF-8")>
<cfset setEncoding("FORM", "UTF-8")>

and

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

No change. always the wrong caracters,

Thanks for any help with this mess.

Pierre.

This topic has been closed for replies.

2 replies

Inspiring
November 23, 2009

But your ColdFusion is not necessarily using the same charset as your server.

Which version of CF are you using? If you are using CF 5 or older, forget it. If later, it should work out of the box if you use the appropriate charset attributes everywhere. Can you explain a bit more about the processing code?