Skip to content

Non-quoted UTF-8 isn't parsed correctly #147

Description

@bbc2

The .env:

UTF8=été
UTF8_QUOTED="été"

Python code:

import os
import dotenv

dotenv.load_dotenv()

print(list(os.environ.get('UTF8')))
print(list(os.environ.get('UTF8_QUOTED')))

Output:

> python foo.py 
['\\', 'x', 'e', '9', 't', '\\', 'x', 'e', '9']
['é', 't', 'é']

Expected output:

> python foo.py 
['é', 't', 'é']
['é', 't', 'é']

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions