On 6/21/07, voltron <[EMAIL PROTECTED]> wrote:
>
> Im using Python 2.4 Mike, I ve got another idea, Im reading XML in the
> controller, do I have to do something special with the XML file?

The error message says it's in the controller file itself.  '\xdc' is
a U-umlaut character in Latin-1, capitalized, so that should be easy
to find.  What happens if you run the module as a top-level script, or
make a new module containing only the statement in line 63 and try to
run that?  Do you get the same warning or a SyntaxError?  If so,
Python doesn't like your source code.

I have seen only the "# -*- coding: latin-1" syntax, not the other two
syntaxes in the PEP.  Perhaps it's not recognizing your coding line.

As for the XML file's encoding, you'd normally set that with a
declaration at the top of the file:
<?xml version="1.0" encoding="utf-8"?>
But you'd have to check whether your particular XML parser recognizes
that declaration properly.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to