Open Jontyshaw opened 3 weeks ago
hello,have your questions has finished?,I also meet the same question,can you help me
When I use custom i18n json files, the json files also have this problem when loading
No, it hasn't been resolved yet. Currently, it is executed by converting the yaml file to GBK format, or using it entirely in English.
Description
When loading a variable from the yaml environment, the crewai library tries to load it in gbk encoding as soon as Chinese is present in it, but my yaml file is utf-8. You want to add a measure to detect file encoding when loading yaml files
Steps to Reproduce
Expected behavior
When loading yaml files, it automatically detects whether the file encoding is gbk or utf-8 or something else, and loads the file in this encoding format because it involves the definition of agents and the definition of tasks, and people in many other countries may use different encodings
Screenshots/Code snippets
Operating System
Windows 11
Python Version
3.12
crewAI Version
0.51.0
crewAI Tools Version
0.51.0
Virtual Environment
Poetry
Evidence
` crewai run C:\Users\jonty\AppData\Local\pypoetry\Cache\virtualenvs\crew-agent-OgCTPeQm-py3.12\Lib\site-packages\pydantic_internal_config.py:341: UserWarning: Valid config keys have changed in V2:
`
Possible Solution
When loading yaml files, it automatically detects whether the file encoding is gbk or utf-8 or something else, and loads the file in this encoding format because it involves the definition of agents and the definition of tasks, and people in many other countries may use different encodings
Additional context
no