How to change Charset on the fly, via javascript

If you need to ADD OR CHANGE the metatag for charset, on the fly in your web page, you can use the function below, by passing the charset you want as parameter:



For example: setCharset('UTF-8'); or setCharset('ISO-8859-1');

0 commenti: