mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 08:16:44 +03:00
Merge pull request #1961 from Psychi1/Cp1252
Fix the Cp1252 encoding problem
This commit is contained in:
commit
93e3c431ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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-$2', $sEncoding);
|
||||
}
|
||||
|
||||
public static function NormalizeCharsetByValue(string $sCharset, string $sValue) : string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue