View Single Post
  #4 (permalink)  
Old 04-01-2006, 10:29 AM
imported__sam_ imported__sam_ is offline
WebProWorld Member
 
Join Date: Nov 2004
Posts: 33
imported__sam_ RepRank 0
Default

In that case, you would need the script that generates the JavaScript to know the encoding. You could get that via a HTTP request, but the information you get in the header (if any) is often wrong, because the server itself typically doesn't know what the encoding is. So you could fetch the page, any parse it for a charset information in the HTML header. Not efficient and error-prune, but I can't think of anything else.

Sam
__________________
Software-Pointers.com - Directory of Software Development Sites - Free submission.
Reply With Quote