|
@@ 419-427 (lines=9) @@
|
| 416 |
|
} |
| 417 |
|
|
| 418 |
|
// Sinon, peut-etre connaissons-nous ce charset ? |
| 419 |
|
if (!isset($trans[$charset])) { |
| 420 |
|
if ($cset = load_charset($charset) |
| 421 |
|
and is_array($GLOBALS['CHARSET'][$cset]) |
| 422 |
|
) { |
| 423 |
|
foreach ($GLOBALS['CHARSET'][$cset] as $key => $val) { |
| 424 |
|
$trans[$charset][chr($key)] = '&#' . $val . ';'; |
| 425 |
|
} |
| 426 |
|
} |
| 427 |
|
} |
| 428 |
|
if (count($trans[$charset])) { |
| 429 |
|
return str_replace(array_keys($trans[$charset]), array_values($trans[$charset]), $texte); |
| 430 |
|
} |
|
@@ 534-542 (lines=9) @@
|
| 531 |
|
return $s; |
| 532 |
|
} |
| 533 |
|
// Sinon, peut-etre connaissons-nous ce charset ? |
| 534 |
|
if (!isset($trans[$charset])) { |
| 535 |
|
if ($cset = load_charset($charset) |
| 536 |
|
and is_array($GLOBALS['CHARSET'][$cset]) |
| 537 |
|
) { |
| 538 |
|
foreach ($GLOBALS['CHARSET'][$cset] as $key => $val) { |
| 539 |
|
$trans[$charset][chr($key)] = unicode2charset('&#' . $val . ';'); |
| 540 |
|
} |
| 541 |
|
} |
| 542 |
|
} |
| 543 |
|
if (count($trans[$charset])) { |
| 544 |
|
return str_replace(array_keys($trans[$charset]), array_values($trans[$charset]), $texte); |
| 545 |
|
} |