Jibé wrote:
> PaulH **AdobeCommunityExpert** a écrit :
> I work with a MS SQL server database encoding in
iso-8859-1
data stored in plain text,char,varchar datatypes (ie not
"N")? using the ODBC or
JDBC (it would be listed as ms sql server in the db drivers
list) driver?
> The code :
you're not following good i18n practices. while my preference
is for unicode
("just use unicode" has been my motto for years), if you're
really only ever
going to use french & never need the euro symbol then i
guess iso-8859-1
(latin-1) is fine.
add to top of all your cf pages:
<cfprocessingdirective pageencoding="iso-8859-1">
in your application.cfm (or it's equivalent) add:
<cfset setEncoding("form","iso-8859-1")>
<cfset setEncoding("url","iso-8859-1")>
<cfcontent type="text/html; charset=iso-8859-1">
if you think you might need other languages, including the
euro symbol, then you
should consider unicode. change your text columsn to "N" type
(nText, nChar,
nVarChar) & swap the latin-1 encodings in the tags above
to utf-8.