Discussion:
I18N Behaviour
(too old to reply)
MarkT
2006-02-09 09:12:27 UTC
Permalink
Hi,

how does the IE series behave when you insert a external UTF-8 coded
javascript source into a lets say GB2312 coded page.

Does it display both contents correct ?

Thanks,
Mark
Wei-Dong XU [MS]
2006-02-10 03:53:27 UTC
Permalink
Hi Mark,

Thanks for the posting!

Currently I donot accurately know your scenario "how does the IE series
behave when you insert an external UTF-8 coded...". Is the "insert" you
mean the linked script in the web page?

From my understanding, you are going to link one UTF encoding js file at
your GB2312 html page. So based on my test below, this is supported very
well. The detailed steps are:
1. create one js file names test.js in UTF-8 (codepage 65001) encoding:
function ShowMessage()
{
alert("display something!");
}

2. create one htm file page linking this script file in GB2312 (code page
20963)encoding:
<html>
<head>
<title>Untitled Page</title>
<script type="text/javascript" src="/test.js"></script>
</head>
<body>

<input type=button value="text" onclick='ShowMessage()' />

</body>
</html>

3. then browse the html page and test the button click, it can work as
expected.

If you have further question, please feel free to let me know. Have a nice
day!

Best Regards,
Wei-Dong XU
Microsoft Support
---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------------------
It is my pleasure to be of any assistance.

Continue reading on narkive:
Loading...