I have a content that is generated via javascript and deployed in an iframe. im giving this code to clients to generate the contet in their site (like a widget)
problem i encounter is that all my documents are encoded with UTF-8 while some of my clients are using Windows-1255 encoding (hebrew)
this of course is not working well with my script and causes various problems.
problem is divided to 2 : 1. data that is transffered from the parent to the server (through the iframe) is not recognized well
- messages and data sent from the iframe is also not decoded (such as alerts and confirm messages)
i have tries decoding strings using decodeURI
and decodeURIComponent
but its not working.
what can i do to solve this ?