in reply to inconsistency in whitespace handling
result:$latin = "\xa0"; # nbsp $unicode= $latin . pack 'U0'; # convert to UTF-8 print "Latin 1: ", $latin =~ /\s/ ? "yes":"no", "\n"; print "Unicode: ", $unicode =~/\s/ ? "yes":"no", "\n";
Latin 1: no Unicode: yes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: inconsistency in whitespace handling
by idsfa (Vicar) on May 12, 2005 at 14:40 UTC |