🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27103

Re: Kodowanie stringu pod windows i linux

#27103
From: ethanak
Date: Wed, 23 Dec 2009 16:20
22 lines
1429 bytes
Dnia Wed, 23 Dec 2009 02:04:17 -0800, Michal M napisał(a):

[...]
> 
> Dziękuję za odpowiedzi.
> 
> a = "Łóżko"
> print a.decode("utf-8").encode("windows-1250")
> 
> i
> 
> b = u"Łóżko"
> print b.encode("windows-1250")
> 
> Działają tak samo i to chyba wystarczy.

A co masz w #coding?

ethanak
-- 
mailto=window.atob('ZXRoYW5ha0Bwb2xpcC5jb20=');
http://milena.polip.com/ - nie czekam na Ivo!
Technical Details
Message-ID: <hgtg0l$5mt$2@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <f20bf1d1-7b95-4134-8480-402e8cf72630@a32g2000yqm.googlegroups.com> <d38ff7b6-eef8-4952-a1c8-183d3b9e432d@v13g2000yqk.googlegroups.com> <7d25fecc-0503-401e-aa9c-ca2764689842@d10g2000yqh.googlegroups.com> <slrnhj3kie.o9l.milusi.pysiaczek@buziaczek.pl> <e741d92b-6bb5-42d6-a1c7-a5d827b2e78d@m3g2000yqf.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: ethanak <sweethanak@buziaczek.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: Kodowanie stringu pod windows i linux
Date: Wed, 23 Dec 2009 16:20:37 +0000 (UTC)
Organization: http://onet.pl
Lines: 22
Message-ID: <hgtg0l$5mt$2@news.onet.pl>
References: <f20bf1d1-7b95-4134-8480-402e8cf72630@a32g2000yqm.googlegroups.com> <d38ff7b6-eef8-4952-a1c8-183d3b9e432d@v13g2000yqk.googlegroups.com> <7d25fecc-0503-401e-aa9c-ca2764689842@d10g2000yqh.googlegroups.com> <slrnhj3kie.o9l.milusi.pysiaczek@buziaczek.pl> <e741d92b-6bb5-42d6-a1c7-a5d827b2e78d@m3g2000yqf.googlegroups.com>
NNTP-Posting-Host: 81.219.220.1
Mime-Version: 1.0
X-Trace: news.onet.pl 1261585237 5853 81.219.220.1 (23 Dec 2009 16:20:37 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Wed, 23 Dec 2009 16:20:37 +0000 (UTC)
User-Agent: Pan/0.133 (House of Butterflies)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit