Set properties files encoding to escape unicode.

git-svn-id: svn://10.0.0.236/trunk@43736 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tao%netscape.com
1999-08-19 22:37:35 +00:00
parent 775f2a2153
commit bd832f7355

View File

@@ -238,12 +238,8 @@ nsPersistentProperties::Load(nsIInputStream *aIn)
PRInt32 c;
nsresult ret;
#if 1
nsString utf8("UTF-8");
ret = NS_NewConverterStream(&mIn, nsnull, aIn, 0, &utf8);
#else
ret = NS_NewConverterStream(&mIn, nsnull, aIn);
#endif
nsString uesc("x-u-escaped");
ret = NS_NewConverterStream(&mIn, nsnull, aIn, 0, &uesc);
if (ret != NS_OK) {
#ifdef NS_DEBUG
cout << "NS_NewConverterStream failed" << endl;