Skip to content

Persian (Farsi) text in chat is not displayed correctly from right to left #5200

Description

@Azmoon2214

Describe the bug

When typing Persian (Farsi) text in the MTA chat, the text is not handled correctly as a right-to-left language. Persian and English text are displayed in the wrong order, especially when both languages are used in the same message.
For example, typing:
خوبی؟ .Azmoon سلام
may be displayed as:
سلام Azmoon. خوبی؟
This makes Persian messages difficult to read and causes incorrect text ordering.

Steps to reproduce

  1. Launch MTA:SA and join any server.
  2. Press F8 to open the console.
  3. Copy and paste the following sentence into the chat:
    say سلام Azmoon. خوبی؟
  4. Send the message.
  5. The message is displayed incorrectly as:
    سلام Azmoon. خوبی؟
    The expected visual order should be:
    خوبی؟ .Azmoon سلام

Version

v1.6-release-24138

Additional context

This appears to be a bidirectional text (BiDi) / right-to-left text rendering issue affecting Persian text mixed with English characters and punctuation.

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions