Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6350531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:49:37+00:00 2026-05-24T21:49:37+00:00

I would appreciate your help with a hopefully trivial issue. Recently I’ve started learning

  • 0

I would appreciate your help with a hopefully trivial issue. Recently I’ve started learning Python for work with Google App Engine environment. Needlessly to say I began with the simplest Hello World app.

The English version of it works just fine

However, when I try to work with the signs in my mother tongue, then the problem starts. Basically when run on local machine it does not display letters properly.

Here’s the piece of code that’s causing me issues

# -*- coding: utf-8 -*-
import datetime

print 'Content-Type: text/html'
print ''
print '<html>'
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>'

Of course I save all files in utf-8 format. Can anyone tell me how to enable proper display of utf-8 characters here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:49:38+00:00Added an answer on May 24, 2026 at 9:49 pm

    Set the encoding when you set the content type:

    print 'Content-Type: text/html; charset=UTF-8'
    

    Don’t use a meta tag as @bpgergo suggests; it’s specific to HTML, and simply overrides the headers. Since you’re already setting the headers, it’s easier and better to simply set them correctly in the first place.

    You really shouldn’t be using CGI and outputting your content using print statements, though – it’s messy and will be a real pain to maintain as your app gets bigger, as well as making things like internationalization a lot harder. Instead, use WSGI and templating – see the getting started guide for App Engine, specifically this and this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would appreciate any help on this issue. Lets say I want to load
I would appreciate your help in understanding a "Concurrency Example" from: http://forums.sun.com/thread.jspa?threadID=735386 public synchronized
Im still a newbie in android, would appreciate your help as I couldnt find
I'm new to regular expressions and would appreciate your help. I'm trying to put
I would appreciate your help to understand the difference in behaviour between procedure and
I am a newbie in Matlab, so I would appreciate your help! I have
Would appreciate your help with something. I have an autoclick Greasemonkey for Firefox script
I'm new to linq so would appreciate your help with getting this left join
I have an issue to sort a SQL results and really would appreciate your
I would appreciate your help on this: I have 2 models: class Author <

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.