mirror of https://github.com/hwchase17/langchain
Add encoding parameter to TextLoader (#2250)
This merge request proposes changes to the TextLoader class to make it more flexible and robust when handling text files with different encodings. The current implementation of TextLoader does not provide a way to specify the encoding of the text file being read. As a result, it might lead to incorrect handling of files with non-default encodings, causing issues with loading the content. Benefits: - The proposed changes will make the TextLoader class more flexible, allowing it to handle text files with different encodings. - The changes maintain backward compatibility, as the encoding parameter is optional.pull/2273/head
parent
67dde7d893
commit
e49284acde
Loading…
Reference in New Issue