Git Product home page Git Product logo

Comments (2)

nroach avatar nroach commented on July 4, 2024

Additional Detail:

Error
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 96: ordinal not in range(128)
Log

Traceback (most recent call last):
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/docassemble/webapp/server.py", line 2713, in index
    interview = docassemble.base.interview_cache.get_interview(yaml_filename)
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/docassemble/base/interview_cache.py", line 20, in get_interview
    the_interview = interview_source.get_interview()
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/docassemble/base/parse.py", line 144, in get_interview
    return Interview(source=self)
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/docassemble/base/parse.py", line 2011, in __init__
    self.read_from(kwargs['source'])
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/docassemble/base/parse.py", line 2067, in read_from
    question = Question(document, self, source=source, package=source_package, source_code=source_code)
  File "/usr/share/docassemble/local/local/lib/python2.7/site-packages/docassemble/base/parse.py", line 1074, in __init__
    self.content = TextObject(definitions + unicode(data['content']), names_used=self.mako_names)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 96: ordinal not in range(128)

from docassemble.

jhpyle avatar jhpyle commented on July 4, 2024

I'm sorry about that. In some of my code I used the right mechanisms for loading Unicode files and in others I hadn't. I have gone through the code and made all file-loading unicode-friendly. I tried running the Wizard with a Markdown file containing unicode and it did not give me any problems. The fixes are in the latest commit, which is building on Docker Hub now. Thanks very much for reporting this!

from docassemble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.