Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/ecrire/ecrire/charsets/ |
<?php /***************************************************************************\ * SPIP, Système de publication pour l'internet * * * * Copyright © avec tendresse depuis 2001 * * Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribué sous licence GNU/GPL. * \***************************************************************************/ /** * Déclaration des correspondances entre charsets iso-8859-6 (arabic) et unicode * * @link http://czyborra.com/charsets/iso8859.html#ISO-8859-6 * * @package SPIP\Core\Charsets **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } load_charset('iso-8859-1'); $trans = $GLOBALS['CHARSET']['iso-8859-1']; $mod = [ 0xA0 => 0x00A0, 0xA4 => 0x00A4, 0xAC => 0x060C, 0xAD => 0x00AD, 0xBB => 0x061B, 0xBF => 0x061F, 0xC1 => 0x0621, 0xC2 => 0x0622, 0xC3 => 0x0623, 0xC4 => 0x0624, 0xC5 => 0x0625, 0xC6 => 0x0626, 0xC7 => 0x0627, 0xC8 => 0x0628, 0xC9 => 0x0629, 0xCA => 0x062A, 0xCB => 0x062B, 0xCC => 0x062C, 0xCD => 0x062D, 0xCE => 0x062E, 0xCF => 0x062F, 0xD0 => 0x0630, 0xD1 => 0x0631, 0xD2 => 0x0632, 0xD3 => 0x0633, 0xD4 => 0x0634, 0xD5 => 0x0635, 0xD6 => 0x0636, 0xD7 => 0x0637, 0xD8 => 0x0638, 0xD9 => 0x0639, 0xDA => 0x063A, 0xE0 => 0x0640, 0xE1 => 0x0641, 0xE2 => 0x0642, 0xE3 => 0x0643, 0xE4 => 0x0644, 0xE5 => 0x0645, 0xE6 => 0x0646, 0xE7 => 0x0647, 0xE8 => 0x0648, 0xE9 => 0x0649, 0xEA => 0x064A, 0xEB => 0x064B, 0xEC => 0x064C, 0xED => 0x064D, 0xEE => 0x064E, 0xEF => 0x064F, 0xF0 => 0x0650, 0xF1 => 0x0651, 0xF2 => 0x0652 ]; foreach ($mod as $num => $val) { $trans[$num] = $val; } $GLOBALS['CHARSET']['iso-8859-6'] = $trans;