Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Cyrillic text processing in link with ?text=<draft_text> #28784

Closed
Drovosek01 opened this issue Dec 21, 2024 · 1 comment
Closed

Incorrect Cyrillic text processing in link with ?text=<draft_text> #28784

Drovosek01 opened this issue Dec 21, 2024 · 1 comment
Labels
bug TG macOS Swift github.com/overtake/TelegramSwift

Comments

@Drovosek01
Copy link

Steps to reproduce

  1. Find any real Teelgram username (or use your own)
  2. Create and open link in Browser https://t.me/<username>?text=Привет это тестовый текст

Or in Terminal in macOS execute command open tg://resolve?domain=<username>&text=Привет это тестовый текст

  1. In Browser in dialog Window click "Open Telegram"
  2. Will opened Telegram application and started chat with written message %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 %D1%8D%D1%82%D0%BE %D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D1%8B%D0%B9 %D1%82%D0%B5%D0%BA%D1%81%D1%82

Expected behaviour

I expect that the text that I wrote will be inserted into the message input field, even if it is not ASCII characters. There should probably be a decodeURIComponent() type function running under the hood of Telegram applcation.

Actual behaviour

Instead of Привет это тестовый текст text, I get %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 %D1%8D%D1%82%D0%BE %D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D1%8B%D0%B9 %D1%82%D0%B5%D0%BA%D1%81%D1%82

Operating system

macOS Monterey 12.7 Intel

Version of Telegram Desktop

11.5.269855 Stable

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@Drovosek01 Drovosek01 added the bug label Dec 21, 2024
Copy link

Sorry, but according to the version you specify in this issue, you are using the Telegram for macOS, not the Telegram Desktop.
You can report your issue to the group or to the repository of Telegram for macOS.

If I made a mistake and closed your issue wrongly, please reopen it. Thanks!

@github-actions github-actions bot added the TG macOS Swift github.com/overtake/TelegramSwift label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TG macOS Swift github.com/overtake/TelegramSwift
Projects
None yet
Development

No branches or pull requests

1 participant