Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- Date: Mon, 13 Feb 2006 12:11:00 +0900
- From: David Riggs <dariggs@example.com>
- Subject: Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US;rv:1.7.7) Gecko/20050420 Debian/1.7.7-2
David E replied to David Riggs: On Date: Sun, 12 Feb 2006 17:30:00 +0900, David Riggs <dariggs@example.com> wrote: > Does anyone know how to pass real unicode kanji to perl on the command > line? (Not just bytes that appear as kanji but are passed on as bytes.)--- --Reply: ---You might need to do --- utf8::decode($whatever) ---on the args you read in. --More info here: ---http://search.cpan.org/~jhi/perl-5.8.0/pod/perluniintro.pod Dave ----------- Thanks David. I got something similar to work (follow your link): use Encode 'decode_utf8'; $Unicode = decode_utf8($bytes); Somehow your suggested utf8::decode($x) only returns a "1", presumably for success, and I do not see how to get it to return the value. By the way, I find that perl m/// and s/// just do not work on kanji unicode typed directly into the expression. But if you set the kanji into a variable, and then immediately use it one of those operators, its fine. Very mystifying. Thanks for the help, now that I realize these two additional things I have perl unicoding away. And I thought perl was supposed to just work with unicode! David Riggs
- Follow-Ups:
- Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- From: sjs
- Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- From: David E
- Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- From: Stephen J. Turnbull
- Re: [tlug] unicode and Perl- how to pass command lineunicode arguments
- From: Neil Bortnak
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] nvidia...
- Next by Date: Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- Previous by thread: Re: [tlug] unicode and Perl- how to pass command lineunicode arguments
- Next by thread: Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links