{	"0", "x-mac-roman"	}, {	"6", "x-mac-greek"	}, {	"35", "x-mac-turkish"	}, {	"513", "ISO-8859-1"	}, {	"514", "ISO-8859-2"	}, {	"517", "ISO-8859-5"	}, {	"518", "ISO-8859-6"	}, {	"519", "ISO-8859-7"	}, {	"520", "ISO-8859-8"	}, {	"521", "ISO-8859-9"	}, {	"1049", "IBM864"	}, {	"1280", "windows-1252"	}, {	"1281", "windows-1250"	}, {	"1282", "windows-1251"	}, {	"1283", "windows-1253"	}, {	"1284", "windows-1254"	}, {	"1285", "windows-1255"	}, {	"1286", "windows-1256"	}, {	"1536", "us-ascii"	}, {	"1584", "GB2312"	}, {	"1585", "x-gbk"		}, {	"1600", "EUC-KR"	}, {	"2080", "ISO-2022-JP"	}, {	"2096", "ISO-2022-CN"	}, {	"2112", "ISO-2022-KR"	}, {	"2336", "EUC-JP"	}, {	"2352", "GB2312"	}, {	"2353", "x-euc-tw"	}, {	"2368", "EUC-KR"	}, {	"2561", "Shift_JIS"	}, {	"2562", "KOI8-R"	}, {	"2563", "Big5"		}, {	"2565", "HZ-GB-2312"	},  {	nsnull, nsnull		}
"2336",	"EUC-JP", "2561", "Shift_JIS", nsnull, nsnull
InternetSearchDataSource::MapEncoding(const nsString &numericEncoding,                                       nsString &stringEncoding){	// XXX we need to have a full table of numeric --> string conversions	struct	encodings	encodingList[] =	{		{	"0", "x-mac-roman"	},		{	"6", "x-mac-greek"	},		{	"35", "x-mac-turkish"	},		{	"513", "ISO-8859-1"	},		{	"514", "ISO-8859-2"	},		{	"517", "ISO-8859-5"	},		{	"518", "ISO-8859-6"	},		{	"519", "ISO-8859-7"	},		{	"520", "ISO-8859-8"	},		{	"521", "ISO-8859-9"	},		{	"1049", "IBM864"	},		{	"1280", "windows-1252"	},		{	"1281", "windows-1250"	},		{	"1282", "windows-1251"	},		{	"1283", "windows-1253"	},		{	"1284", "windows-1254"	},		{	"1285", "windows-1255"	},		{	"1286", "windows-1256"	},		{	"1536", "us-ascii"	},		{	"1584", "GB2312"	},		{	"1585", "x-gbk"		},		{	"1600", "EUC-KR"	},		{	"2080", "ISO-2022-JP"	},		{	"2096", "ISO-2022-CN"	},		{	"2112", "ISO-2022-KR"	},		{	"2336", "EUC-JP"	},		{	"2352", "GB2312"	},		{	"2353", "x-euc-tw"	},		{	"2368", "EUC-KR"	},		{	"2561", "Shift_JIS"	},		{	"2562", "KOI8-R"	},		{	"2563", "Big5"		},		{	"2565", "HZ-GB-2312"	},		{	nsnull, nsnull		}	};  if (!numericEncoding.IsEmpty())	{    for (PRUint32 i = 0; encodingList[i].numericEncoding != nsnull; i++)    {      if (numericEncoding.EqualsASCII(encodingList[i].numericEncoding))       {        stringEncoding.AssignASCII(encodingList[i].stringEncoding);        return NS_OK;      }    }  }  // Still no encoding, fall back to default charset if possible  nsXPIDLString defCharset;  nsCOMPtr<nsIPref> prefs(do_GetService(NS_PREF_CONTRACTID));  if (prefs)    prefs->GetLocalizedUnicharPref("intl.charset.default", getter_Copies(defCharset));  if (!defCharset.IsEmpty())    stringEncoding = defCharset;  else    // make "ISO-8859-1" as the default (not "UTF-8")    stringEncoding.AssignLiteral("ISO-8859-1");  return(NS_OK);}