Skip to content

[BUG] Unable to search files with Unicode characters when using @ to reference files in Claude CodeΒ #10879

@smartleos

Description

@smartleos

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When using the "@" symbol to reference files in Claude Code, the search function does not properly handle Unicode characters (such as Chinese characters). This prevents users from searching and selecting files that contain Unicode characters in their filenames.

What Should Happen?

Expected Behavior:
The file search should support Unicode characters and return all files that match the Unicode search terms.
Actual Behavior:
Files with Unicode characters in their names cannot be found when searching with Unicode keywords.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code CLI
  2. Type "@" to trigger file reference/search
  3. Enter Unicode characters (e.g., Chinese characters) as search keywords
  4. Observe that no matching files are found, even when files with those Unicode characters exist

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.0.31

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

This affects users working with files that have non-ASCII characters in their filenames, particularly those working in non-English language environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions