You need to put that header in your ajax.thtml layout.  That is the
layout used with ajax calls.  Although I seem to remember that the
RequestHandler Component when used will put that header in there for
you since without the UTF8 IE would choke on certain AJAX calls.

On Oct 7, 6:31 am, "francky06l" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have checked the previous post into the group, but I have a problem
> of UTF-8 and ajax calls. We are making a site that should handle
> Bulgarian language.
> We have a form that saves correctly the data in UTF-8  (using SET NAMES
> UTF-8) into the construct of the app_model.php file.
> The problem appears when we view and input field initialized with the
> data from the DB, it does not show the correct characters. We verified
> that the ouput of the DB is correct, but it seems that because the
> "form" view comes from an AJax request, the browser (FireFox) does not
> translate the current UTF-8 Data.
> We have the correct charset into the default.thtml :
> <meta http-equiv="content-type" content="text/html; charset=utf-8" />,
> but there is no header sent with an Ajax request, maybe the browser
> does not interpret it?
>
> We are using the last snippet CJS (2.1.1) but really get stuck now. I
> was woundering about the !DOCTYPE declaration and the <html
> xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> declaration ... but not sure this is the good direction to go..
> 
> Any help would be great
> Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to