* [Comm] Python, utf-8
@ 2005-05-08 21:04 Michael Bykov
2005-05-09 6:04 ` Pavel Sergeev
0 siblings, 1 reply; 3+ messages in thread
From: Michael Bykov @ 2005-05-08 21:04 UTC (permalink / raw)
To: community
В юникодной локали первая строчка print выдает код символа,
а вторая правильно печатает юникодный символ (здесь я его
отобразил XXX):
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
a = {"key":u"XXX"}
1) print article.items()
2) print article["key"]
1) [('key', u'\u1f41')]
2) верно - XXX
Зачем items() конвертирует символ в код?
Куда рыть, где такие вопросы задавать?
Python 2.4.1
--
Stay tuned!
М.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] Python, utf-8
2005-05-08 21:04 [Comm] Python, utf-8 Michael Bykov
@ 2005-05-09 6:04 ` Pavel Sergeev
2005-05-09 7:13 ` Michael Bykov
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Sergeev @ 2005-05-09 6:04 UTC (permalink / raw)
To: community
Michael Bykov пишет:
>Куда рыть, где такие вопросы задавать?
Русскоязычная группа пользователей Python и Zope: http://zope.net.ru/
Рассылка - http://zope.net.ru/About/mail-list/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] Python, utf-8
2005-05-09 6:04 ` Pavel Sergeev
@ 2005-05-09 7:13 ` Michael Bykov
0 siblings, 0 replies; 3+ messages in thread
From: Michael Bykov @ 2005-05-09 7:13 UTC (permalink / raw)
To: community
On Mon, 09 May 2005 10:04:03 +0400
Pavel Sergeev <old_bib2004@mail.ru> wrote:
> http://zope.net.ru/About/mail-list/
Спасибо!
--
Stay tuned!
М.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-09 7:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-08 21:04 [Comm] Python, utf-8 Michael Bykov
2005-05-09 6:04 ` Pavel Sergeev
2005-05-09 7:13 ` Michael Bykov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git