Visual Basic .NET » ASP.NET General Discussion
content-type not displayed properly with asian characters -- Saul --


My code fetches a list of countries, depending on the user settings the stored procedure returns the correct translations.

The problem is that for Japanese and Chinese, the text is not displayed in the language, but as weird characters like ƒuƒ‰ƒWƒ‹

This is my code:

function getDivision(parentParam){
var dsN =
MyBusiness._default.getDivision(parentParam,languagecode).value;

if(dsN != null && typeof(dsN) == "object" && dsN.Tables != null){
var sN = new Array();

for(var i=0; i<dsN.Tables
.Rows.length; i++){
sN
= " <input type=radio lang=ja name=division value=" +
dsN.Tables
.division + "
onclick=this.selected;updateGblVar('div_nbr',this.value,'" +
escapeSpecial(dsN.Tables
.divisiondesc) + "');getCountries("
+ dsN.Tables
.division + ",'" + languagecode +
"');getMetrics('" + languagecode + "',this.value);>" +
dsN.Tables
.divisiondesc;
}
td_division.innerHTML=sN.join("");
}
else {
alert(ERR + ".
");
}
}

Any ideas on why the text is not displayed correctly ...all other text strings that are not using AJAX are displayed correctly.
Thanks,
S.

[Submit Comment]Home