https://bugs.kde.org/show_bug.cgi?id=165044

--- Comment #181 from Méven <[email protected]> ---
Git commit 0f2530253adf065959afbaa174e4d3029ff67191 by Méven Car, on behalf of
Ramil Nurmanov.
Committed on 30/03/2026 at 07:49.
Pushed by meven into branch 'master'.

kio_ftp: Enable UTF-8 encoding negotiation after successful login

Currently kio_ftp uses legacy encodings for filenames and responses, leading to
garbled non-ASCII characters (e.g. Cyrillic) on UTF-8 servers.

This commit adds simple UTF-8 support in ftpLogin():
- Send CLNT kio_ftp (for compatibility with servers requiring client ID)
- Send OPTS UTF8 ON
- If server replies 200 → switch to UTF-8 via
remoteEncoding()->setEncoding("UTF-8")
- On failure (e.g. 500/501) → fallback to default encoding (no regression)

Also Check CLNT command result before enabling UTF-8.
Related: bug 269370

M  +9    -0    src/kioworkers/ftp/ftp.cpp

https://invent.kde.org/frameworks/kio/-/commit/0f2530253adf065959afbaa174e4d3029ff67191

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to