Skip to content

Title: UTF-8 Korean word wrapping not correctly supported in Main Display #7846

@CryAngel1970

Description

@CryAngel1970

Hello,
I have set "Wrap lines at:" in the Main Display to 60. However, it seems that the word wrapping behavior does not properly support UTF-8 Korean characters.

To illustrate, I enabled word wrapping at 60 columns in Mudlet, then copied the output into UltraEdit. There, I observed that some lines exceeded 100 columns — which suggests that wide characters (like Korean) are not being measured correctly.
Image

My understanding is that Mudlet currently treats all characters as occupying a single column, but in UTF-8, Korean characters typically take up two columns in monospace fonts, whereas ASCII characters (letters, digits, spaces) only take one.

So for example, if I set word wrap at 80 columns, I would expect wrapping to occur based on the visual width:

ASCII characters (English, digits, spaces) count as 1 column

Korean characters count as 2 columns

This way, a mixed-language line (e.g., Korean + English + numbers + spaces) would wrap correctly at the 80th column, not 80th character. But currently, Mudlet seems to count all characters equally, which leads to visual overflow when using languages like Korean.

Is there currently any way to achieve accurate word wrapping for UTF-8 wide characters like Korean in Mudlet? Or is reducing the wrap width (e.g., to 40) the only workaround?

Would support for proper display column width (based on character width) be possible in the future?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions