X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2Flanguages.inc;h=c6a5c68299852009bd9db1916399e87445f6fb8d;hb=520b167979260edf2cee41842e526ec985c37f92;hp=c8fb629e770ebf35376b7095110dfd30912fc270;hpb=6e65e0ab0d0dc5e7e0ea000f024a3481da35505b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/languages.inc b/maintenance/language/languages.inc index c8fb629e77..c6a5c68299 100644 --- a/maintenance/language/languages.inc +++ b/maintenance/language/languages.inc @@ -508,18 +508,18 @@ class Languages { $this->loadGeneralMessages(); $this->loadMessages( $code ); $wrongChars = [ - '[LRM]' => "\xE2\x80\x8E", - '[RLM]' => "\xE2\x80\x8F", - '[LRE]' => "\xE2\x80\xAA", - '[RLE]' => "\xE2\x80\xAB", - '[POP]' => "\xE2\x80\xAC", - '[LRO]' => "\xE2\x80\xAD", - '[RLO]' => "\xE2\x80\xAB", - '[ZWSP]' => "\xE2\x80\x8B", - '[NBSP]' => "\xC2\xA0", - '[WJ]' => "\xE2\x81\xA0", - '[BOM]' => "\xEF\xBB\xBF", - '[FFFD]' => "\xEF\xBF\xBD", + '[LRM]' => "\u{200E}", + '[RLM]' => "\u{200F}", + '[LRE]' => "\u{202A}", + '[RLE]' => "\u{202B}", + '[POP]' => "\u{202C}", + '[LRO]' => "\u{202D}", + '[RLO]' => "\u{202B}", + '[ZWSP]' => "\u{200B}", + '[NBSP]' => "\u{00A0}", + '[WJ]' => "\u{2060}", + '[BOM]' => "\u{FEFF}", + '[FFFD]' => "\u{FFFD}", ]; $wrongRegExp = '/(' . implode( '|', array_values( $wrongChars ) ) . ')/sDu'; $wrongCharsMessages = [];