Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Yes Python 3 accepts Unicode characters in source files, but you may need a special encoding comment to tell it how your source file is encoded. Commented May 4, 2020 at 18:04
  • 1
    @MarkRansom isn't UTF-8 the default now, in lack of # -*- coding: utf-8 -*- string? I vaguely recall seeing that somewhere. Commented May 4, 2020 at 18:07
  • I'm not sure, but even if it is there's no guarantee the source was saved as UTF-8. Especially given the details of the question. Commented May 4, 2020 at 18:09
  • @MarkRansom true. Commented May 4, 2020 at 18:11
  • I thank you all for your input. For me (new to Python due extra of time because of quarantine) it's hard to deal with strings other than bytes. Commented May 4, 2020 at 18:46