From: Jarkko Hietaniemi Date: Tue, 27 Nov 2001 14:51:42 +0000 (+0000) Subject: Update the 'wide characters' FAQ entry. X-Git-Tag: accepted/trunk/20130322.191538~29176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9d154f2fcc66578ca3928838452568e5aa1692b;p=platform%2Fupstream%2Fperl.git Update the 'wide characters' FAQ entry. p4raw-id: //depot/perl@13317 --- diff --git a/pod/perlfaq6.pod b/pod/perlfaq6.pod index be7e8ec..58e9708 100644 --- a/pod/perlfaq6.pod +++ b/pod/perlfaq6.pod @@ -641,11 +641,20 @@ programming language, you insensitive scoundrel! =head2 How can I match strings with multibyte characters? -This is hard, and there's no good way. Perl does not directly support -wide characters. It pretends that a byte and a character are -synonymous. The following set of approaches was offered by Jeffrey -Friedl, whose article in issue #5 of The Perl Journal talks about this -very matter. +Starting from Perl 5.6 Perl has had some level of multibyte character +support. Perl 5.8 or later is recommended. Supported multibyte +character repetoires include Unicode, and legacy encodings +through the Encode module. See L, L, +and L. + +If you are stuck with older Perls, you can do Unicode with the +C module, and character conversions using the +C and C modules. If you are using +Japanese encodings, you might try using the jperl 5.005_03. + +Finally, the following set of approaches was offered by Jeffrey +Friedl, whose article in issue #5 of The Perl Journal talks about +this very matter. Let's suppose you have some weird Martian encoding where pairs of ASCII uppercase letters encode single Martian letters (i.e. the two