thanks Markus. Is # -*- coding: utf-8 -*-
still recognized by Python? Massimo On Dec 1, 2:36 am, Markus Gritsch <m.grit...@gmail.com> wrote: > Hi, > > when generating a new application, all the bootstrap files start with > the line > > # coding: utf8 > > which leads to the following exception, as soon as the file contains a > non ASCII character: > > Traceback (most recent call last): > File "D:\home\ActivityRecording\website\web2py\gluon\restricted.py", > line 182, in restricted > ccode = compile(code.replace('\r\n', '\n'), layer, 'exec') > File "D:/home/ActivityRecording/website/web2py/applications/report/ > controllers/default.py", line 0 > SyntaxError: unknown encoding: utf8 (report/controllers/default.py, > line 0) > > The correct name of this encoding is utf-8, so please change it -- > preferrably to > > # -*- coding: utf-8 -*- > > which makes the encoding also recognizable by Emacs. > > Kind regards, > Markus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.