Skip to content

[CLI] bug: Terminal output encoding issue / Mojibake with UTF-8 characters (e.g., 'ã' renders as '├ú') #30

Description

@vitorbonamigosassi

By using the lore history command, special characters with diacritics (like tildes) are corrupted in the terminal output.

The problem does not occur on lore status or lore commit.

Steps:

  1. Create a file and commit with a message containing diacritics (It outputs correctly).
  2. Use lore history.
  3. Observe broken text.

Environment:

  • OS: Windows 11
  • Terminal: Bash and Powershell
  • Lore Version: 0.8.3

Terminal history:

# Create file
$ touch ãéí.txt

# Stage
$ lore stage ãéí.txt
Staging file system changes
Staging 1 file (0 modified, 1 added, 0 deleted, 0 moved)
Staged repository state 3c2388f76a53...

# Status (displays correctly)
$ lore status
Repository 019edbb506...
...
Changes staged for commit:
A ãéí.txt

# Commit (displays correctly)
$ lore commit "áàÀ"
...
Date      : Thu, 18 Jun 2026 18:48:43 +0000
    áàÀ
Commit succeeded

# History (breaks the characters)
$ lore history
...
Date      : Thu, 18 Jun 2026 18:48:43 +0000
    áàÀ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions