473,385 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Python/ASP local characters and 500 server error

Using Python / ASP on a IIS server with Mark Hammond's win32 extensions,
i have the following problem.

All occurences of local characters (fx. danish זרו) in comments or in
strings result in a HTTP/1.1 500 Server Error.

Is there a solution to this problem?

/Martin
Nov 22 '05 #1
4 2005
Martin wrote:
Using Python / ASP on a IIS server with Mark Hammond's win32 extensions,
i have the following problem.

All occurences of local characters (fx. danish זרו) in comments or in
strings result in a HTTP/1.1 500 Server Error.

Is there a solution to this problem?


the first thing to do when you get a server error is to look in the server logs
to see what the real error is.

in this case, chances are that you'll see a warning message from the Python
interpreter that points to you this page:

http://www.python.org/peps/pep-0263.html

(scroll down to "Examples" to see the solution)

</F>

Nov 22 '05 #2
Martin wrote:
Using Python / ASP on a IIS server with Mark Hammond's win32 extensions,
i have the following problem.

All occurences of local characters (fx. danish זרו) in comments or in
strings result in a HTTP/1.1 500 Server Error.

Is there a solution to this problem?


the first thing to do when you get a server error is to look in the server logs
to see what the real error is.

in this case, chances are that you'll see a warning message from the Python
interpreter that points to you this page:

http://www.python.org/peps/pep-0263.html

(scroll down to "Examples" to see the solution)

</F>

Nov 22 '05 #3
Fredrik Lundh wrote:

http://www.python.org/peps/pep-0263.html


Using the info from pep-0263, adding a line in the start for the file:

# -*- coding: <charcode> -*-

works for .py files, but the error i get is from an .asp file.

The logfile contains this info:

ASP_0147|500_Server_Error 500

A solution is to move ALL code from the .asp page to a .py file and
import it on the .asp page.

But there must be another solution?

/Martin
Nov 22 '05 #4
Fredrik Lundh wrote:

http://www.python.org/peps/pep-0263.html


Using the info from pep-0263, adding a line in the start for the file:

# -*- coding: <charcode> -*-

works for .py files, but the error i get is from an .asp file.

The logfile contains this info:

ASP_0147|500_Server_Error 500

A solution is to move ALL code from the .asp page to a .py file and
import it on the .asp page.

But there must be another solution?

/Martin
Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
8
by: JZ | last post by:
I cannot find out what is the problem with my Python. I cannot join to smtp host. > python Python 2.3.4 (#1, Jun 22 2004, 04:42:42) on linux2 Type "help", "copyright", "credits" or "license"...
10
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. ...
0
by: Martin | last post by:
Using Python / ASP on a IIS server with Mark Hammond's win32 extensions, i have the following problem. All occurences of local characters (fx. danish זרו) in comments or in strings result in a...
4
by: Layne Meier | last post by:
I'm having a bit of a problem trying to install Python on a Solaris 10 system. I didn't have this kind of problem when trying to install it on Solaris 8. Has anyone else experienced this...
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
15
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.