i've read , pretty much everything, available at
docs.python.org
regarding unicode.
> You could try the literal method of generating a unicode string:
>
> path = u'%s%s' % (ROOT, name)
tried it. The problem persists
> Where exactly do you get the UnicodeEncodeError exception when you remove
> the unicode calls?
I get the the exception at this line -> shutil.copytree(ROOT +
'matrix', path)
And the traceback...
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py" in get_response
100. response = callback(request,
*callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/
decorators.py" in _wrapped_view
25. return view_func(request, *args, **kwargs)
File "/home/sohesado/codein/wikitool/creators/views.py" in create_wiki
42. doku_script.create_wiki(
w.name, tmpl,
request.POST['access_policy'], reg)
File "/home/sohesado/codein/wikitool/creators/doku_script.py" in
create_wiki
10. create_base(name, reg)
File "/home/sohesado/codein/wikitool/creators/doku_script.py" in
create_base
16. shutil.copytree(ROOT + u'matrix', path)
File "/usr/lib/python2.6/shutil.py" in copytree
146. os.makedirs(dst)
File "/usr/lib/python2.6/os.py" in makedirs
157. mkdir(name, mode)
Exception Type: UnicodeEncodeError at /wikitool/creators/create_wiki/
Exception Value: 'ascii' codec can't encode characters in position
19-25: ordinal not in range(128)
> > > >
django-users...@googlegroups.com<django-users%2Bunsubscribe@google
groups.com>
> > <
django-users%2Bunsu...@googlegroups.com<django-users%252Bunsubscribe@g
ooglegroups.com>
> >
django-users...@googlegroups.com<django-users%2Bunsubscribe@google
groups.com>