Fix Cp1252 encoding

This commit is contained in:
Psychi 2025-05-25 21:04:40 +02:00 committed by GitHub
parent dea7f4d1d8
commit 0bc9950b42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ abstract class Utils
return 'iso-8859-8';
}
return \preg_replace('/^(cp-?|windows?)(12[\d])/', 'windows-$1', $sEncoding);
return \preg_replace('/^(cp|windows)-?(12[\d]*)/i', 'windows-$1', $sEncoding);
}
public static function NormalizeCharsetByValue(string $sCharset, string $sValue) : string