mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-23 11:16:58 +00:00
Add PythonLoader which auto-detects encoding of Python files (#3311)
This PR contributes a `PythonLoader`, which inherits from `TextLoader` but detects and sets the encoding automatically.
This commit is contained in:
3
tests/integration_tests/examples/non-utf8-encoding.py
Normal file
3
tests/integration_tests/examples/non-utf8-encoding.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# coding: iso-8859-5
|
||||
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <- Cyrillic characters
|
||||
u = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
Reference in New Issue
Block a user