Desire2change
asked on
french characters using innerhtml and php
I have a php script, which displays records from the database. It has french characters also.
Now there is a textbox in front of each record, I can edit the order of each record and click on a save button. this calls an ajax function which replaces the whole div with the updated order of records.
Now the problem is that initially the records are displaying fine, but when the same thing is written after the ajax function is called using the innerhtml , then the french characters gets distorted and some squares are coming. also there is a radiobutton which opens a lightview window after replacing the div using innerhtml, the popup also does not come
hope i get an answer soon
thanks to all in advance !
Now there is a textbox in front of each record, I can edit the order of each record and click on a save button. this calls an ajax function which replaces the whole div with the updated order of records.
Now the problem is that initially the records are displaying fine, but when the same thing is written after the ajax function is called using the innerhtml , then the french characters gets distorted and some squares are coming. also there is a radiobutton which opens a lightview window after replacing the div using innerhtml, the popup also does not come
hope i get an answer soon
thanks to all in advance !
<td><div align="center"><a href="add_news.php?nid=<?= $nrow->nid ;?>" class="lightview" title=":: :: autosize: true, width: 760, height: 630">
<input type="radio" name="rdfid[]" id="rdfid[<?= $nrow->nid ;?>]" />
</a> </div></td>
<? }?>
<td>
<?= htmlentities(stripslashes($nrow->title), ENT_QUOTES, 'UTF-8');?>
</td>
ASKER
i tried url_decode also but same output
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
when i click on link say 'News', it shows me the titles correctly with the , then when i change order an ajax function replaces the titles with the changed order at that time the titles don't show correctly
Use url_decode() function to display .
For more about that:
http://in.php.net/urldecode