Re: enconding dei form

Roberto Marzialetti <[email protected]>
Newsgroups gmane.comp.cms.cold-fusion.devel.italian
Message-ID <CAH4YkK486P2ikKm_dFe0BUZcvSM+zBOA8rfBVhpMY29VNWrOgA@mail.gmail.com>
si ho provato anche in app.cfc dentro onRequestStart

il bello è che riesco a se scrivo quei dati nel db
mi vengono scritti correttamente.

- se gli stessi dati li stampo funziona
- se li scrivo in un file funziona bene solo con chartset='utf'
- ma se li invio via cfhttp (sia get che post) i caratteri si sputtanano
(anche se arrivano dal db...)

non mi viene in mente nulla...
:-(

Il giorno 31 maggio 2012 13:25, Cristian Costantini <
[email protected]> ha scritto:

>
>
> Ciao Roberto,
>
> SetEncoding lo hai messo anche nel application.cfc ?
>
> Inviato da iPhone
>
> Il giorno 31/mag/2012, alle ore 10:51, Roberto Marzialetti <
> [email protected]> ha scritto:
>
>
>
> ciao!
>
> non riesco a passare via form le accentate ad un gateway
>
> se faccio un cfdump in html del form le accentate le vedo correttamente.
>
> ma se le butto su un file con
> <cfudmp output="nomefile">
> vedo:
> MESSAGGIO: ? ? ? ? ? ?
>
> se invece suo un <cffile charset="utf-8"> vedo correttamente
> MESSAGGIO: é é é ò ò à
>
> il mio gateway invece riceve sempre.
> MESSAGGIO: ? ? ? ? ?
>
> la cosa strana è che se scrivo nel db funziona bene.
>
> uso cfhttp per contattare il gateway (non mio)
> e pur usando
> <cfhttp charset="utf-8">
> <cfhttpparam type="header" name="charset" value="utf-8">
> non funziona sia in get che in post
>
> nella pagina ho provato a mettere di tutto:
> <cfprocessingdirective pageEncoding="utf-8">
> <cfcontent type="text/html; charset=UTF-8">
> <cfset setEncoding("form","UTF-8")>
> <cfset setEncoding("url","UTF-8")>
>
> senza risultato
>
> qualche idea?!
>
> grazie
>
> --
> Roberto Marzialetti
> webdeveloper
> m. 329 0681847
>
> --
> Roberto Marzialetti
> webdeveloper
> m. 329 0681847
>
>
>
> 




-- 
Roberto Marzialetti
webdeveloper
m. 329 0681847
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.