unicode support

Discussion in 'Perl Misc' started by xah@xahlee.org, Jan 9, 2005.

  1. Guest

    # -*- coding: utf-8 -*-
    # python supports unicode in source code by putting a coding
    declaration
    # as the first line.
    print "look chinese chars: 请你ä¸è¦å“­"

    # Note, however, identifiers cannot use unicode chars.
    # e.g. you cannot define a function with unicode char.

    ---------

    In perl, support of unicode is very flaky. The language does not
    support it, but packages that changes behaviors of string handling (in
    its regex, for instance.)
    Xah

    http://xahlee.org/PageTwo_dir/more.html
     
    , Jan 9, 2005
    #1
    1. Advertising

  2. wrote:
    > # -*- coding: utf-8 -*-
    > # python supports unicode in source code by putting a coding
    > declaration
    > # as the first line.


    So?

    > In perl, support of unicode is very flaky. The language does not
    > support it, but packages that changes behaviors of string handling (in
    > its regex, for instance.)


    Really? You may want to check your sources. They seem to be a little bit
    outdated, like several years old?

    jue
     
    Jürgen Exner, Jan 9, 2005
    #2
    1. Advertising

  3. Matt Garrish Guest

    <> wrote in message
    news:...
    # -*- coding: utf-8 -*-
    # python supports unicode in source code by putting a coding
    declaration
    # as the first line.
    print "look chinese chars: ?????"

    # Note, however, identifiers cannot use unicode chars.
    # e.g. you cannot define a function with unicode char.

    So why are you posting to a Perl newsgroup? You can "use utf8" if you want
    to write your Perl programs in utf-8 (though you should upgrade to 5.8 as
    well). Or is this your lame attempt at trolling at python group?

    Matt
     
    Matt Garrish, Jan 9, 2005
    #3
  4. >>>>> "xah" == xah <> writes:

    xah> python supports unicode in source
    xah> code by putting a coding declaration as the first line.

    [...]

    xah> In perl, support of unicode is very flaky. The language does
    xah> not support it, [...]

    All:

    Xah Lee is trolling. (Whether he's *only* a troll, or a reasonable
    person who occasionally trolls to amuse himself, is a matter of
    perspective.) Please note the inaccuracy of his comment on Perl and
    the two newsgroups to which this message was posted before replying;
    this is a clear case of "lets you and him fight."

    Charlton


    --
    cwilbur at chromatico dot net
    cwilbur at mac dot com
     
    Charlton Wilbur, Jan 9, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page