Thanks this is sufficient. Will fix it tonight.
On Jun 2, 11:21 am, Iceberg <iceb...@21cn.com> wrote:
> Problem confirmed. It is because sqlite requires that the non-ascii db
> path name must be in utf8 encoding. However, when using non-English
> Windows, the default encoding is usually some "local" encoding.
>
> Good news is this can be fixed in web2py. Just change gluon/sql.py as
> below:
>
> Add line 671,672:
> import sys,locale
> path_encoding=sys.getfilesystemencoding() or
> locale.getdefaultlocale()[1]
>
> Change line 676:
> sqlite3.Connection(dbpath.decode(path_encoding).encode('utf8'),
>
> Change line 680:
> sqlite3.Connection(uri[9:].decode(path_encoding).encode('utf8'),
>
> To Massimo: I can provide the entire sql.py if needed.
>
> On Jun2, 10:26pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > Not sure I understand. Where did you put the chinese characters?
> > web2py supports unicode but all strings in code must be UTF8.
>
> > Massimo
>
> > On Jun 2, 5:51 am, plato <weier...@gmail.com> wrote:
>
> > > i know why i meet this question because of chinese word like C:
> > > \Documents and Settings\Administrator\桌面 " 桌面(chinese words)" I think
> > > web2py not support chinese words ;)
>
> > > On 5月29日, 上午9时45分, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > hmmm... are you upgrading from a previous version? Did you edit the
> > > > welcome app? What OS?
> > > > Did you try click on the link?
>
> > > > Massimo
>
> > > > On May 28, 7:14 pm, weiertzw <weier...@gmail.com> wrote:
>
> > > > > download web2py version 1.63
> > > > > i use it start server
> > > > > this information
> > > > > "
> > > > > Internal error
>
> > > > > Ticket issued: welcome/
> > > > > 127.0.0.1.2009-05-29.08-11-39.d409f7b9-5226-42bc-abe2-12e64ad696d9
> > > > > "
--~--~---------~--~----~------------~-------~--~----~
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
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---