You are experiencing character encoding issues, I think. Simple solution: Copy / Paste into an editor (like Vim), then copy out of there
SImpler (if you use firefox): Get the "it's all text" plugin, which lets you configure your favorite editor to use with fields. Harder solution: do the conversions programmatically (there was some discussion of this, and filters offered on the Sphinx mailing list recently) On Fri, Nov 14, 2008 at 5:20 PM, mr.freeze <[EMAIL PROTECTED]> wrote: > > Being a lazy developer, I like to copy and paste when possible. I > noticed that code copied from the web2py manual or t2.pdf throws an > error when run. Everything looks good in the web editor but when > opened in IDLE it had strange characters in place of the single quote: > > if t2.logged_in: > response.menu=[[’index’,False,t2.action(’index’)],[â > €™logout’,False,t2.action(’logout’)]] > else: > response.menu=[[’login’,False,t2.action(’login’)],[â > €™register’,False,t2.action(’register’)]] > > Has anyone else seen this? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

