Changeset 61385 in spip-zone


Ignore:
Timestamp:
May 18, 2012, 10:08:05 AM (10 years ago)
Author:
eric@…
Message:

Extraction avec le bon charset...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/relecture/relecture_fonctions.php

    r61255 r61385  
    122122
    123123        if ($idebut < $ifin) {
    124                 $selection = substr($texte, $idebut, $ifin-$idebut+1);
     124                $selection = mb_substr($texte, $idebut, $ifin-$idebut+1, $GLOBALS['meta']['charset']);
    125125        }
    126126        else {
    127                 $selection = substr($texte, max($idebut-10, 0), min($idebut+10, strlen($texte)));
     127                $selection = mb_substr($texte, max($idebut-10, 0), min($idebut+10, strlen($texte)), $GLOBALS['meta']['charset']);
    128128        }
    129129
Note: See TracChangeset for help on using the changeset viewer.