Question
encoding, charset, euro €
Hi,
Please can someone explain why my application is working...
I have a site that has users entering text from many countries so I want the most fool proof encoding I can get... utf-8 ?
I have read lots of posts in the forum that state the euro symbol € is not included in iso-8859-1. I have also read that the best encoding to use for mulit language sites is utf-8.
However with encoding currently set to iso-8859-1 in aplication.cfm everything is fine, the euro is € as it should be; code:
<cfheader name="Content-Type" value="text/html; charset=iso-8859-1">
<cfcontent type="text/html; charset=iso-8859-1">
<cfset setencoding("FORM", "iso-8859-1")>
<cfset setencoding("URL", "iso-8859-1")>
An upgrade is in progress to MySQL 5 so I have a chance to ensure things are as they should be. The tables are all set to charset -utf-8 and collation utf8_unicode_ci
BUT if I change the application.cfm code to utf-8 the euro € turns into a "?". Code:
<cfheader name="Content-Type" value="text/html; charset=utf-8">
<cfcontent type="text/html; charset=utf-8">
<cfset setencoding("FORM", "utf-8")>
<cfset setencoding("URL", "utf-8")>
<cfprocessingdirective pageEncoding="utf-8">
I obviously have not understood something about these encodings.... can someone enlighten me?
Regards,
Chris.
Please can someone explain why my application is working...
I have a site that has users entering text from many countries so I want the most fool proof encoding I can get... utf-8 ?
I have read lots of posts in the forum that state the euro symbol € is not included in iso-8859-1. I have also read that the best encoding to use for mulit language sites is utf-8.
However with encoding currently set to iso-8859-1 in aplication.cfm everything is fine, the euro is € as it should be; code:
<cfheader name="Content-Type" value="text/html; charset=iso-8859-1">
<cfcontent type="text/html; charset=iso-8859-1">
<cfset setencoding("FORM", "iso-8859-1")>
<cfset setencoding("URL", "iso-8859-1")>
An upgrade is in progress to MySQL 5 so I have a chance to ensure things are as they should be. The tables are all set to charset -utf-8 and collation utf8_unicode_ci
BUT if I change the application.cfm code to utf-8 the euro € turns into a "?". Code:
<cfheader name="Content-Type" value="text/html; charset=utf-8">
<cfcontent type="text/html; charset=utf-8">
<cfset setencoding("FORM", "utf-8")>
<cfset setencoding("URL", "utf-8")>
<cfprocessingdirective pageEncoding="utf-8">
I obviously have not understood something about these encodings.... can someone enlighten me?
Regards,
Chris.
