For http://werkzeug.pocoo.org/documentation/unicode:
==
deocdes
decodes
==
For http://werkzeug.pocoo.org/:
==
Werkzeug started as simple collection
Werkzeug started as a simple collection
==
For http://werkzeug.pocoo.org/documentation/unicode:
==
f = file('/path/to/the_file.txt', 'r')
try:
text = f.decode('utf-8') # assuming the file is utf-8 encoded
finally:
f.close()
It's easier to use codecs.open.
==
cought
caught
==
The reason is that if this exception is not cought by the application
but
a catch-all for HTTP exceptions exists a default 400 BAD REQUEST error
page is displayed.
If this exception is not caught by the application, it is caught by a
higher-level exception handler that catches HTTP exceptions. In such cases, a
400 BAD REQUEST error is displayed.
==
There is an additional error handling available
s/ an / /g
==
Happy Hacking!
-jj
--
I, for one, welcome our new Facebook overlords!
http://jjinux.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---