Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Work around Unicode encoding error on Windows #703

Closed
wants to merge 1 commit into from

Commits on Nov 18, 2017

  1. Work around Unicode encoding error on Windows

    For Python <3.6 on Windows, encoding strings for output to the Windows
    command prompt may result in a UnicodeEncodingError.  VOC does not take
    encoding into consideration, and so the output differs.
    
    Until such time as proper encoding support is implemented in VOC, use an
    environment variable that Python provides for overriding the IO
    encoding.  By setting this to UTF-8, the output may appear garbled, but
    the error is avoided, and it matches the run-as-Java output.  For
    consistency, pass the environment variable to Java as well.
    
    Addresses beeware#610 and beeware#237.
    whydoubt committed Nov 18, 2017
    Copy the full SHA
    e63efda View commit details
    Browse the repository at this point in the history