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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.