chinab / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

Non ascii strings broken when encoded #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Base62 encoder breaks non ascii strings (ie french strings with accents)!

To correct it, just add /u unicode modifier into $WORDS regexp, as:

  private static $WORDS    = '/\\b[\\da-zA-Z]\\b|\\w{2,}/u';

Original issue reported on code.google.com by alexand...@monaco.mc on 5 Mar 2013 at 6:38

GoogleCodeExporter commented 9 years ago
Sorry, better but still not working with /u parameter...

Original comment by alexand...@monaco.mc on 14 Mar 2013 at 9:14