W
WilsonOfCanada
Hellos,
I have a problem with strings converting to unicode that is in a
function.
var list_provinces = ['\\u82F1\\u5C6C','\\u54E5\\u5025']
for (loopCounter=0;loopCounter<(list_provinces.length);loopCounter++)
{
var province = document.createElement('option');
province.text = list_provinces[loopCounter];
province.value = list_provinces[loopCounter];
if (loopCounter == 0)
{
province.selected = "selected";
}
try
{
menuProvince.add(province, null);
}
catch(ex)
{
menuProvince.add(province);
}
}
However, when my list shows up, it only shows
Thanks
I have a problem with strings converting to unicode that is in a
function.
var list_provinces = ['\\u82F1\\u5C6C','\\u54E5\\u5025']
for (loopCounter=0;loopCounter<(list_provinces.length);loopCounter++)
{
var province = document.createElement('option');
province.text = list_provinces[loopCounter];
province.value = list_provinces[loopCounter];
if (loopCounter == 0)
{
province.selected = "selected";
}
try
{
menuProvince.add(province, null);
}
catch(ex)
{
menuProvince.add(province);
}
}
However, when my list shows up, it only shows
\u82F1\u5C6C
\u54E5\u5025
Thanks