Skip to content

Chinese filenames display as URL-encoded garbage when sending files via Feishu #44988

@neverlanding

Description

@neverlanding

Bug type

Regression (worked before, now fails)

Summary

When sending files with Chinese filenames through Feishu plugin, the recipient sees URL-encoded garbage instead of proper Chinese characters.

Steps to reproduce

  1. Create a file with Chinese filename (e.g., 测试文件.txt)
  2. Place it in ~/.openclaw/media/browser/
  3. Send the file using Feishu plugin's message tool with media parameter
  4. Check in Feishu - the filename appears as URL-encoded garbage (e.g., %E6%B5%8B%E8%AF%95%E6%96%87%E4%BB%B6.txt)

Expected behavior

The recipient should see the original Chinese filename (测试文件.txt) in the Feishu message.

Actual behavior

The recipient sees URL-encoded filename like %E6%B5%8B%E8%AF%95%E6%96%87%E4%BB%B6.txt instead of the Chinese characters.

OpenClaw version

2026.3.12

Operating system

Ubuntu 24.04 LTS (Linux)

Install method

No response

Model

volcengine-plan/ark-code-latest

Provider / routing chain

OpenClaw -> Feishu plugin v0.1.16 -> getFeishuRuntime().media.loadWebMedia()

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

Feishu plugin v0.1.16 already fixed their side by removing the sanitizeFileNameForUpload function that was percent-encoding filenames, but the root cause is in the OpenClaw core runtime where loadWebMedia URL-encodes filenames when processing local file paths as URLs.

Related Feishu plugin PR: m1heng/clawdbot-feishu#380

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions