Changeset 660 for LATMOS-Accounts/lib


Ignore:
Timestamp:
01/18/10 23:46:53 (14 years ago)
Author:
nanardon
Message:
  • to_ascii trap all non ascii caracters, replace it by '_'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Utils.pm

    r659 r660  
    2323    $text =~ tr {uàâÀÂÄÀçéÚêëÉÈÊËïîÏÎÞöÎÖÔÌûÛÜ} 
    2424                {uaaaAAAceeeeEEEEiiIIoooOOuuUU}; 
    25     $text =~ s/([^[:ascii:]])//; 
     25    $text =~ s/([^[:ascii:]])/_/g; 
    2626    $text 
    2727}  
Note: See TracChangeset for help on using the changeset viewer.