diff --git a/content/research/python.md b/content/research/python.md new file mode 100644 index 0000000..962a4e7 --- /dev/null +++ b/content/research/python.md @@ -0,0 +1,14 @@ ++++ +title = "Python" +date = 2021-03-05 + +[taxonomies] +tags = ["python", "file", "encoding"] ++++ + +## Getting the encoding of a file + +```python +with open('filename') as origin: + return origin.encoding +```