View Single Post
  #1 (permalink)  
Old 03-30-2006, 05:20 AM
guymal guymal is offline
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 10
guymal RepRank 0
Default Detecting Referring Page Encoding

How can I detect the encoding of a referring page?

I have a page that is charset=windows-1255 that pulls an external JavaScript file. I need this JavaScript file to be able to detect what encoding the first page is in and display itself accordingly (have the JavaScript file dynamically be in the same encoding as the page that it is in).

I'm guessing that Google Adsense do this since you can paste your Google Adsense code in pages with different encodings and the Google ads will be displayed properly (and even display ads in different languages).

TIA!
Reply With Quote