Hi Nicolas,

> Check the database. Probably your database is not saving things in UTF-8.

All Data in the databas is stored in utf-8. if check the responseText all is
fine! But after that i'm doing the evalJSON on the responseText and after i
did this the � (\u0080) is lost the evalJSON seems to be the prob.


Before evalJSON: "Beschreibung":"asdf \u0080 @ \u00e4\u00f6\u00fc\u00df"

After evalJSON: "asdf � @ ����"

Andreas


> 
> On Dec 27, 2007 12:27 PM, Andreas Franke <[EMAIL PROTECTED]> wrote:
> >
> > Hi Christophe,
> > so I took a look at headers.
> >
> > This is my response-header:
> >
> > Date    Thu, 27 Dec 2007 14:18:55 GMT
> > Server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e
> mod_autoindex_color PHP/5.2.3
> >
> > X-Powered-By:   PHP/5.2.3
> > Expires:        Thu, 19 Nov 1981 08:52:00 GMT
> > Cache-Control:  no-store, no-cache, must-revalidate, post-check=0, pre-
> check=0
> > Pragma: no-cache
> > Content-Length: 205
> > Keep-Alive:     timeout=5, max=66
> > Connection:     Keep-Alive
> > Content-Type:   text/html; charset=UTF-8
> >
> >
> > And this is the request-header:
> >
> > Host:   appbuilder.loc
> > User-Agent:     Mozilla/5.0 (Windows; U; Windows NT 6.0; de;
> rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
> > Accept: text/javascript, text/html, application/xml, text/xml, */*
> > Accept-Language:        de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
> > Accept-Encoding:        gzip,deflate
> > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > Keep-Alive:     300
> > Connection:     keep-alive
> > X-Requested-With:       XMLHttpRequest
> > X-Prototype-Version:    1.6.0
> > Content-Type:   application/x-www-form-urlencoded; charset=UTF-8
> > Referer:
> http://appbuilder.loc/builds/prototype/forms/Artikel_mastertable.php
> > Content-Length: 14
> > Cookie: PHPSESSID=dbab2f26862af16f45246d7b58d1ac16
> > Pragma: no-cache
> > Cache-Control:  no-cache
> >
> > Still can't find the Prob, because all seems to be UTF-8 encoded...
> >
> > Thanks for helping.
> >
> > Andreas
> >
> > > -----Urspr?ngliche Nachricht-----
> > > Von: [email protected] [mailto:rubyonrails-
> > > [EMAIL PROTECTED] Im Auftrag von Christophe Porteneuve
> > > Gesendet: Donnerstag, 27. Dezember 2007 12:06
> > > An: [email protected]
> > > Betreff: [Rails-spinoffs] Re: AW: [Rails-spinoffs] Re: Missing ?
> (Euro-
> > > Sign)
> > >
> > >
> >
> > > Andreas Franke a ?crit :
> > > > the ajax-response that I get from the server is exactly this:
> > >
> > > Don't look at the body of the response, look at the HEADERS.
> > > Specifically, the Content-Type header.  It is most likely some
> > > ISO-8859-x, instead of either ISO-8859-15 (which includes ?) or better
> > > yet, UTF-8 (which includes everything!).
> > >
> > > Character encoding issues always boil down to people not having a
> > > full-spectrum UTF-8 encoding in their app?  which they should.
> > >
> > > --
> > > Christophe Porteneuve aka TDD
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> > >
> >
> 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to