Skip to content

Add tests for RFC 5987/6266 UTF-8 filename support - #8

Merged
joanfabregat merged 2 commits into
mainfrom
feature/utf8-filename-support
Jan 23, 2026
Merged

Add tests for RFC 5987/6266 UTF-8 filename support#8
joanfabregat merged 2 commits into
mainfrom
feature/utf8-filename-support

Conversation

@joanfabregat

Copy link
Copy Markdown
Member

Summary

  • Verify that Content-Disposition header correctly implements RFC 5987/6266 for UTF-8 filenames
  • Add comprehensive tests for various international characters (French, German, Spanish, Chinese, Japanese)
  • Document the existing behavior that Symfony's HeaderUtils::makeDisposition() already handles this correctly

Test plan

  • All 25 tests pass
  • Verify filename*=utf-8''... format is generated for non-ASCII filenames
  • Verify ASCII fallback is included for older browsers

Closes #7

🤖 Generated with Claude Code

joanfabregat and others added 2 commits January 23, 2026 11:31
Verify that Content-Disposition header correctly includes both ASCII
fallback (filename=) and UTF-8 encoded (filename*=) formats when
filenames contain non-ASCII characters like accents or international
characters.

Closes #7

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The <source> element in phpunit.xml was introduced in PHPUnit 10.1.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@joanfabregat
joanfabregat merged commit c9a7ba5 into main Jan 23, 2026
8 checks passed
@joanfabregat
joanfabregat deleted the feature/utf8-filename-support branch January 23, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RFC 5987/6266 UTF-8 filename support in Content-Disposition header

1 participant