Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54894

Re: what is wrong in my code?? (python 3.3)

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.python
Subject Re: what is wrong in my code?? (python 3.3)
Date 2013-09-27 16:19 +0000
Organization A noiseless patient Spider
Message-ID <l24b71$j2k$3@dont-email.me> (permalink)
References <c1d453ae-c79e-4fe9-ae3f-b1eb5780e347@googlegroups.com>

Show all headers | View raw


On Fri, 27 Sep 2013 06:54:48 -0700, dream4soul wrote:

> #!c:/Python33/python.exe -u
> import os, sys 
> print("Content-type: text/html; charset=utf-8\n\n")
> print ('Hello, world!<hr>')
> print('ранее предусматривалась смертная казнь.')

> I see only first print, second it just question marks in my browser(code
> edited in notepad++ with UTF-8 encode). what is wrong??

Sounds like your browser is ignoring the charset. Can you force the 
browser to utf-8?

What happens if you create a plain html file with the same content and 
send it to your browser?

eg: test.html:
-----------------
Hello, world!<hr>
ранее предусматривалась смертная казнь.
-----------------

This really doesn't look like a python issue (again).

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

what is wrong in my code?? (python 3.3) dream4soul@gmail.com - 2013-09-27 06:54 -0700
  Re: what is wrong in my code?? (python 3.3) Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-27 16:19 +0000
    Re: what is wrong in my code?? (python 3.3) dream4soul@gmail.com - 2013-09-30 07:17 -0700
      Re: what is wrong in my code?? (python 3.3) Piet van Oostrum <piet@vanoostrum.org> - 2013-09-30 14:00 -0400
        Re: what is wrong in my code?? (python 3.3) dream4soul@gmail.com - 2013-09-30 23:23 -0700

csiph-web