Jump to content

AJAX <div> tag language problem


tanni

Recommended Posts

Hi! First of all - Im pretty new to this - In norway we use three letters - æøå - pretty commonly used. The problem I got is that when I request a page thru sajax theese letters will not show.. only unreadable code ø = �

 

I have allready made sure my sajax.php file is set to handle this - i guess..

 

x.setRequestHeader("Content-Type", "text/javascript; charset=latin1");

 

and support for

 

encodeURIComponent(

 

but I think my problem is more related to the way I use ajax..

 

I call a page by using a link;

 

<a href=\"#\" onClick=\"showSelected(".$some_id.",".$some_data.",".$path_to_shown_page."); document.getElementById('txtActionMessage').innerHTML=''; location.href='#top';\">Click here to edit something</a>

 

The requested page will open wherever I put;

 

<div id=\"txtActionMessage\"></div>

 

This works perfect with english letters - anyone know how I can get æøå vissible? All help would be appriciated!  :)

 

 

Link to comment
https://forums.phpfreaks.com/topic/39965-ajax-tag-language-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.