Perhaps there's something that could do about that in the web2py editor, only it would have to be sensitive to encoding (native language) used, your browser setting --- that might be too messy. Maybe for code, though, an action / button to force all to UTF-8? Not sure if that would do it... but if someone's interested enough, perhaps they could research.
On Fri, Nov 14, 2008 at 6:18 PM, mr.freeze <[EMAIL PROTECTED]> wrote: > > Thanks, I'll give the plugin a try. It threw me for a loop because > the extra characters weren't in the web editor so I couldn't > understand why the code erred out. Thought I was going crazy for a > second! > > On Nov 14, 5:31 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > > 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 web2py@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---