FIX: If chunk["content_with_weight"] contains one or more unpaired
surrogate characters (such as incomplete emoji or other special
characters), then calling .encode("utf-8") directly will raise a
UnicodeEncodeError.
### What problem does this PR solve?
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
|
||
|---|---|---|
| .. | ||
| cache_file_svr.py | ||
| discord_svr.py | ||
| jina_server.py | ||
| task_executor.py | ||