jomolinare / app-engine-site-creator

Automatically exported from code.google.com/p/app-engine-site-creator
0 stars 0 forks source link

UnicodeDecodeError #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I want to put Russian characters into a page I get error like 
{{{
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 10:
ordinal not in range(128)
}}}

Please use force unicode decode. I resolve this problem replacing 
{{{
page.content = request.POST['editorHtml']);
}}} 

to 

{{{
page.content = unicode(request.POST['editorHtml'],'UTF-8');
}}}

Original issue reported on code.google.com by mi%eunix...@gtempaccount.com on 26 Nov 2008 at 6:06

GoogleCodeExporter commented 9 years ago
Thanks! We should probably also explicitly provide unicode compatibility for 
page
names and titles.

Original comment by greg.w.p...@gmail.com on 1 Dec 2008 at 5:35

GoogleCodeExporter commented 9 years ago

Original comment by James.Bo...@gmail.com on 23 Dec 2008 at 2:34

GoogleCodeExporter commented 9 years ago
This is probably the same issue as I am having 
http://groups.google.com/group/app-engine-site-
creator/msg/50a35cf947f5578a

Original comment by vidarsv...@gmail.com on 12 Feb 2009 at 10:26

GoogleCodeExporter commented 9 years ago
Fixing all mentioned problems here would be great.

Original comment by marcin.c...@gmail.com on 17 Mar 2009 at 11:24

GoogleCodeExporter commented 9 years ago
And change (admin.py)

yaml_data = request.POST['yaml']

to

yaml_data = unicode(request.POST['yaml'],'UTF-8')

In attach copy admin.py with Unicode support

Original comment by axe...@gmail.com on 17 Dec 2009 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 41 has been merged into this issue.

Original comment by robert.f...@gmail.com on 20 May 2011 at 9:37