Article View: pl.comp.lang.python
Article #28202Re: Python w Google App Engine i krzaki
From: Mrowak
Date: Wed, 17 Aug 2011 17:05
Date: Wed, 17 Aug 2011 17:05
23 lines
2041 bytes
2041 bytes
Ok, głupi jestem. Po 3 godzinach bezskutecznej walki w końcu wpadłem na pomysł że może wypadałoby tak dodać znacznik kodowania do pliku. Całość wygląda w ten sposób: >> # -*- coding: utf-8 -*- >> >> import datetime >> >> print 'content-Type: text-html ' >> print '' >> print '<html>' >> print '<html>' >> print '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' >> print '<head>' >> print '<title>Witaj świecie</title>' >> print '</head>' >> print '<body>' >> print '<h1>Witaj świecie</h1>' >> print '' >> print 'Data logowania to: %s' % (datetime.datetime.now()) >> print '</body>' >> print '</html>'
Technical Details
Message-ID:
<d621d82c-3fc9-4d89-b8b7-c25621e8dc56@k15g2000yqd.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!k15g2000yqd.googlegroups.com!not-for-mailReferences:
<1d7ffdbf-240d-4604-9126-6a40fee934dd@t29g2000vby.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!k15g2000yqd.googlegroups.com!not-for-mail From: Mrowak <mreszotnik@gmail.com> Newsgroups: pl.comp.lang.python Subject: Re: Python w Google App Engine i krzaki Date: Wed, 17 Aug 2011 10:05:52 -0700 (PDT) Organization: http://groups.google.com Lines: 25 Message-ID: <d621d82c-3fc9-4d89-b8b7-c25621e8dc56@k15g2000yqd.googlegroups.com> References: <1d7ffdbf-240d-4604-9126-6a40fee934dd@t29g2000vby.googlegroups.com> NNTP-Posting-Host: 178.213.56.4 Mime-Version: 1.0 X-Trace: posting.google.com 1313600860 31882 127.0.0.1 (17 Aug 2011 17:07:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 17 Aug 2011 17:07:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k15g2000yqd.googlegroups.com; posting-host=178.213.56.4; posting-account=hYkfaQoAAAC_Rpp1Nyj8CZBsWutiO_9x User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit