RaspberryPiFoundation / lesson_format

Lesson formatter
17 stars 28 forks source link

Can't build polish projects because of non-ascii character #74

Closed codecleaner closed 9 years ago

codecleaner commented 9 years ago

When I run:

$ python build.py --rebuild world lessons/scratch lessons/python lessons/webdev output/codeclubworld

I get:

Searching for manifests...
Found Manifest:
/Users/wojciech.zielinski/Projects/CodeClub/lesson_format/lessons/scratch/pl-PL/Semestr 1/pl-PL_scratch_semestr1.manifest
Copying assets...
Language
Polski
Building Term:
Traceback (most recent call last):
  File "build.py", line 1253, in 
    build(p.rebuild, lessons, theme, languages, output_dir)
  File "build.py", line 842, in build
    progress_print("Building Term:", term.title)
  File "build.py", line 36, in progress_print
    print a
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0105' in position 16: ordinal not in range(128)
andylolz commented 9 years ago

@codecleaner: please test and close if you feel this is resolved.

codecleaner commented 9 years ago

I've tested it, works fine.

andylolz commented 9 years ago

Great! :) Thanks

andylolz commented 9 years ago

@codecleaner does 93ab427 break this for you? I am not sure what the cause is… What version of python are you using? UPDATE: this should be okay now – see dacffcf.