Bug: unexpected behavior with special characters in input

Open
#10,024 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
python
Domain
backend

Research direction

No file or test is named. Start by reproducing the issue with representative special characters, then trace the input-handling and encoding changes from the last release. Done means characters are preserved or escaped correctly without errors, with a regression test covering the observed cases.

Written by the indexing model from the issue text.

Description

When using special characters in the input field, the output is incorrect.

Expected: proper escaping and handling
Actual: characters are stripped or cause errors

This might be related to the encoding changes in the last release.

Dominant language
Python
Stars
16.2k
Forks
1.8k
Avg merge
1d 14h
Merged PRs (30d)
68

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelscope/ms-swift

All issues in modelscope/ms-swift

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.