PDA

View Full Version : Umlauts in Ajaxtabs



chempro
05-18-2007, 09:22 PM
== Ajax Tabs Content script ==

--> URL: on dynamicdrive (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/)

I found the above script which I fund very, very great :) and started to implement it to my own site. There were some minor problems I resolved but now I have a prob. I have no idea how to fix...
I'm swiss... so my site is totally german. And we use the umlauts in our language ;) (//). And actually the script is showing the umlauts as little "Question-Icons". [I mean these: �] I searched everywhere in the code... but there isn't any charset declared or so... so... where and what have I to change, that this very cool script will show the umlauts correct?

I hope someone can help... would be great :)

Best wishes from
Switzerland ;)

ddadmin
05-19-2007, 01:40 AM
Hmm I'm not too good with all the international encoding at all as it relates to Ajax. I did a search on Google, and it seems the easiest way is to use server side scripting such as PHP to send the proper header. In the case of this script, you'd change the external pages to fetch from htm (ie: external.htm) to .php instead, and at the top of the page(s), send the header:


header(’Content-type: text/html;charset=UTF-8′);

See here: http://cakebaker.42dh.com/2006/01/17/the-right-encoding-for-your-ajax-views/

chempro
05-19-2007, 06:07 AM
thank you very much!

Actually the UTF-8 encoding doesn't worked... but with "charset=iso-8859-1" everything is perfect :)