On 6/27/09 11:15 AM, "Peter Marino" <marino.pe...@gmail.com> wrote:

> when I use theĀ $(".main_view").load( "my.php" );
> all my danish letters are rendered wrong.
> is there something I need to do in the my.php to make sure it
> shows the danish characters correctly?
> 
> anyone?

perhaps my.php is returning the text encoded using a different character
encoding from the page it's being loaded into.

for example, say we have a page that's encoded as iso-8859-1, the server
says that's the encoding and the user agent understands and displays it
nicely. then, via ajax and js, utf-8-encoded text is retrieved from the
server and inserted into the page's dom. i would expect the user agent to
render the text as though it were iso-8859-1 and that would be a problem.
i've never tried it but i'd be surprised if the user agent would notice the
mismatch and perform a conversion.

there could be other explanations but this is worth checking.


Reply via email to