var temp = "international stuff goes here";
when i try to redisplay this temp variable in html page to the user
it shows ??????
I believe that you are looking for a golbal var?
as long as you declare the varible on the page out side of any function then you should be able to call it.
or you can pass a varible "string" through the url: www.something.com/sompage.htm?var=some string
you can also write your varible "string" to cookies.
hopes this helps
Nope, actually consider this:
Var temp = “german letters go here”;
After call to this function instead of seeing actual German letters I see ???????????
You need to change the character encoding for the page in the HTML.
it is not an html page
JS resides in .js file
Then you will need to save your JS file with a different character encoding (it should be an option when you save it in your text editor).
You could also play it safe by first escaping all the text and putting the escaped version into in a string then using an additonal step in JS to unescape the string via decodeURI.