Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] How to convert to ascii

Expand Messages
  • Gilles Beauregard
    Allo! ... Work great! Thank! Gilles B. -- Encore plus de trucs et d astuces pour Webmasters http://www.biwi.qc.ca/favori/ More Webmastering trics:
    Message 1 of 6 , Jun 1, 2004
    • 0 Attachment
      Allo!

      >Use regexp replacement instead:
      >
      > $string =~ s/&\#(\d+);/chr($1)/ge;
      >
      >or even better, use a module:
      >
      > use HTML::Entities;
      > $string = decode_entities($string);

      Work great!

      Thank!

      Gilles B.

      --
      Encore plus de trucs et d'astuces pour Webmasters
      http://www.biwi.qc.ca/favori/
      More Webmastering trics:
      http://www.biwi.qc.ca/favorite/
      --
    Your message has been successfully submitted and would be delivered to recipients shortly.