Skip to content

Commit 3d1b15d

Browse files
authored
fix encoding windows (#554)
1 parent 392393a commit 3d1b15d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama-index-server/llama_index/server/services/custom_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_components(self) -> List[ComponentDefinition]:
3434
file_ext = os.path.splitext(file)[1]
3535

3636
try:
37-
with open(file_path, "r") as f:
37+
with open(file_path, "r", encoding="utf-8") as f:
3838
code = f.read()
3939
new_component = ComponentDefinition(
4040
type=component_name,

0 commit comments

Comments
 (0)