mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
accept 'utf-8' as well as 'utf8'
This commit is contained in:
parent
469db88a00
commit
c57cd2fa14
@ -374,7 +374,7 @@ operator >> (istream &in, TextEncoder::Encoding &encoding) {
|
||||
|
||||
if (word == "iso8859") {
|
||||
encoding = TextEncoder::E_iso8859;
|
||||
} else if (word == "utf8") {
|
||||
} else if (word == "utf8" || word == "utf-8") {
|
||||
encoding = TextEncoder::E_utf8;
|
||||
} else if (word == "unicode") {
|
||||
encoding = TextEncoder::E_unicode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user