unicode support

X

xah

# -*- 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
(e-mail address removed)
http://xahlee.org/PageTwo_dir/more.html
 
J

Jürgen Exner

# -*- 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
 
M

Matt Garrish

# -*- 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
 
C

Charlton Wilbur

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top