File with Cyrillic in its name can't be sent #23

Closed
opened 2026-10-17 20:44:55 +00:00 by bmt · 1 comment
Member

build: anotherim-js 0.6.0

Sending File with Cyrillic fails with:"Failed to construct 'Headers': String contains non ISO-8859-1 code point"

steps:

  1. Attach a file with Cyrillic letters in its name
  2. Send it

expected: the file is sent with its name

actual: sending fails with a technical error in english

build: anotherim-js 0.6.0 Sending File with Cyrillic fails with:"Failed to construct 'Headers': String contains non ISO-8859-1 code point" steps: 1. Attach a file with Cyrillic letters in its name 2. Send it expected: the file is sent with its name actual: sending fails with a technical error in english
Owner

The page put the file name into an HTTP header as it was, and browser headers take only ISO-8859-1, so a Cyrillic or emoji name threw before anything was sent. The name is now percent-encoded and the shell decodes it; the name sent over XMPP stays the exact original.

Fixed in 0.6.1: https://dev.another.im/another-im/anotherim-js/releases/tag/v0.6.1

The page put the file name into an HTTP header as it was, and browser headers take only ISO-8859-1, so a Cyrillic or emoji name threw before anything was sent. The name is now percent-encoded and the shell decodes it; the name sent over XMPP stays the exact original. Fixed in 0.6.1: https://dev.another.im/another-im/anotherim-js/releases/tag/v0.6.1
ann closed this issue 2026-10-18 10:35:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
another-im/anotherim-js#23
No description provided.