0
我有3張,它整個看上去像這樣的HTA:的JavaScript字符串不支持特殊字符
<html>
<head>
<script type="text/javascript">
function f(){
frames["toolbar"].document.write("Toolbar");
frames["statusbar"].document.write("Status bar");
}
</script>
<frameset rows="65,*,19" onload="f()">
<frame src="about:blank" name="toolbar" application="yes"/>
<frame src="url.html" name="main" application="yes"/>
<frame src="about:blank" name="statusbar" application="yes"/>
</frameset>
</html>
注:工具欄和狀態幀的內容比此處指定更復雜。
請注意,兩個框架是使用JavaScript定義的,並且沒有真實的URL。
由於此HTA是瑞典語,我需要使用瑞典語特殊字母,例如:å,ä和ö,例如alert("Du är inte uppkopplad")
。問題是,在工具欄框,並在其中的內容已在JavaScript中被定義狀態欄架,這個警告框看起來是這樣的:
它取代的工具欄架一個醜陋的廣場,在狀態ä框架,但不在主框架(它有一個真正的URL)。我該如何解決?
使用適當的編輯器並從ANSI轉換爲'UTF8'。你也可以添加一個meta標籤'' – Mouser 2015-01-31 22:35:44
然後提交包含'ä'的文件的編碼與用於創建'ä'的不同。 – 2015-01-31 22:36:07