Skip to content

Japanese filenames are incorrectly displayed in the audio preview in the block editor #86380

Closed

Description

@nendeb

Description

I tested this issue using Japanese audio filenames and found that the filenames are not displayed correctly in the audio preview within the block editor.

The filenames appear to be URL-encoded (e.g., %E7%94...) instead of displaying the original Japanese characters.

However, the filenames and media titles are displayed correctly in the Media Library.

This issue was found while testing PR #84882.

Step-by-step reproduction instructions

Steps to reproduce

Upload an audio file with a Japanese filename, such as 生成波の音1.mp3 or 生成波の音2.wav.

Create or edit a post using the block editor.

Open the Media tab in the inserter.

Search for or browse the uploaded audio files.

Observe the filenames displayed in the audio preview.

Expected behavior

The audio preview should display the original Japanese filename correctly, just as it does in the Media Library.

For example:

生成波の音1.mp3

生成波の音2.wav

Actual behavior

The filenames in the audio preview are displayed as URL-encoded strings, such as %E7%94..., and are truncated.

The same files are displayed correctly in the Media Library.

Screenshots, screen recording, code snippet

Image Image

Environment info

WordPress 7.2-beta4-65268
Theme Ipsum

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] Bug
    on Nov 5, 2026
  2. added
    [Status] In Progress
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Status] In Progress[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions