Before doing anything, make sure that 5S_Nav_menu.html is saved as Big5.
Easiest solution if it works is to put the charset meta tag on the external menu file:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=Big5" />
<div id="smoothmenu-5S" class="ddsmoothmenu">
<ul>
<li><a href="#">Trainning Material</a>
<ul>
<li><a href="#">1S找問題</a></li>
<li><a href="#">3x5Why_TTT</a></li>
<li><a href="#">DMAIC sample</a></li>
<li><a href="#">e-Announcement</a></li>
<li><a href="#">ECS</a></li>
<li><a href="#">IDL5S_0S deployment</a></li>
<li><a href="#">IDL5S_1S_0408 Rev B</a></li>
<li><a href="#">IDL5S_1S_RiskTag_Mgmt</a></li>
<li><a href="#">IDL 5S</a></li>
<li><a href="#">QBQ</a></li>
<li><a href="#">QBQ</a></li>
<li><a href="#">Safety</a></li>
</ul>
</li>
<li><a href="#">FMEA</a>
<ul>
<li><a href="#">Sub Item 1.1</a></li>
<li><a href="#">Sub Item 1.2</a></li>
<li><a href="#">Sub Item 1.3</a></li>
<li><a href="#">Sub Item 1.4</a></li>
<li><a href="#">Sub Item 1.2</a></li>
<li><a href="#">Sub Item 1.3</a></li>
<li><a href="#">Sub Item 1.4</a></li>
</ul>
</li>
</ul>
<br style="clear: left" />
</div>
The browser cache may need to be cleared and/or the page refreshed to see changes. It would even help to load the external page directly into the browser to get it cached in its new form.
If none of that works and you are using jQuery version 1.5.1 or later, you can try setting the character encoding in the AJAX call in the the ddsmoothmenu.js script. Using a text only editor like NotePad, edit the script here (around line #122), adding the highlighted as shown:
Code:
getajaxmenu: function($, setting, nobuild){ //function to fetch external page containing the panel DIVs
var $menucontainer=$('#'+setting.contentsource[0]); //reference empty div on page that will hold menu
$menucontainer.html("Loading Menu...");
$.ajax({
url: setting.contentsource[1], //path to external menu file
async: true,
beforeSend: function( xhr ) {
xhr.overrideMimeType( "text/html; charset=Big5" );
},
error: function(ajaxrequest){
$menucontainer.html('Error fetching content. Server Response: '+ajaxrequest.responseText);
},
success: function(content){
$menucontainer.html(content);
!!!nobuild && ddsmoothmenu.buildmenu($, setting);
}
});
},
Save and use that version
Bookmarks