graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

In windows prompts cannot be chinese refer to pathlib read_text

Open liseri opened this issue 7 months ago • 6 comments

Description

In windows , prompts cannot be chinese , because pathlib read_text default to use gbk to read prompts file;

Proposed Changes

pathlib read_text add encoding=utf-8 params

Checklist

  • [ *] I have tested these changes locally.
  • [ *] I have reviewed the code changes.
  • [ *] I have updated the documentation (if necessary).
  • [ *] I have added appropriate unit tests (if applicable).

liseri avatar Jul 05 '24 10:07 liseri