Skip to main content
Inspiring
March 9, 2007
Question

convert utf-8 to iso-8859-1

  • March 9, 2007
  • 12 replies
  • 3031 views
Hello,
sorry for my very bad english

i use httpxmlrequest to answer a database and show resultin a div
the string means utf-8 encoded by my javascript fonction and, of course,
no result are found in the database.
How can i convert the string to iso-8859-1 before request the database ?

Thank if you have an idea

JiBé (France)
This topic has been closed for replies.

12 replies

Inspiring
March 9, 2007

I do that in the application.cfm page
I just have this problem with httpxmlrequest
So i want to convert my string before use it in the SQL

JiBé
>
> <cfscript>
> SetEncoding("url", "iso-8859-1");
> </cfscript>
> <cfprocessingdirective pageencoding="iso-8859-1">
>
> at the top of the Coldfusion page?
>
>
>
BKBK
Community Expert
Community Expert
March 9, 2007
What happens when you put

<cfscript>
SetEncoding("url", "iso-8859-1");
</cfscript>
<cfprocessingdirective pageencoding="iso-8859-1">

at the top of the Coldfusion page?