code: def supportedChars(*tests):
      
      for test in tests:
          try:
              test.encode(sys.stdout.encoding)
              return test
          except UnicodeEncodeError:
              pass
      return '?' * len(tests[0])
docs: Takes any number of strings, and returns the first one
              the terminal encoding supports. If none are supported
              it returns '?' the length of the first string.