Browse Source

accept 'utf-8' as well as 'utf8'

David Rose 16 years ago
parent
commit
c57cd2fa14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/express/textEncoder.cxx

+ 1 - 1
panda/src/express/textEncoder.cxx

@@ -374,7 +374,7 @@ operator >> (istream &in, TextEncoder::Encoding &encoding) {
 
 
   if (word == "iso8859") {
   if (word == "iso8859") {
     encoding = TextEncoder::E_iso8859;
     encoding = TextEncoder::E_iso8859;
-  } else if (word == "utf8") {
+  } else if (word == "utf8" || word == "utf-8") {
     encoding = TextEncoder::E_utf8;
     encoding = TextEncoder::E_utf8;
   } else if (word == "unicode") {
   } else if (word == "unicode") {
     encoding = TextEncoder::E_unicode;
     encoding = TextEncoder::E_unicode;