Re: Bad Characters from Unicode
Re: Bad Characters from Unicode
- Subject: Re: Bad Characters from Unicode
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 2 Oct 2007 14:01:44 -0400
On 10/2/07, has <email@hidden> wrote:
> even Perl or Ruby, while a bit rough on the Unicode side,
These days, Perl is not at all rough on the Unicode side. It has
built-in support for accessing characters by name, using Unicode
character properties in regular expressions, converting among
encodings, etc:
#!/usr/bin/perl
use encoding qw(utf8);
use charnames qw(:full);
my $sum = "\N{GREEK CAPITAL LETTER SIGMA}";
if ($sum =~ /\p{Uppercase_Letter}/)
{
print "The lowercase version of $sum is \L$sum\n";
}
#---
Core Ruby remains somewhat reluctant to embrace Unicode, though there
is pretty good support in some add-on modules, used all over the place
in Rails.
And then there's PHP. Ack ptooie. Don't get me started!
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden