jsvine / jsvine/markovify

Non-english characters are not being displayed correctly.

Open
#160 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.4k
Forks
348
PR merge metrics
No merged PRs in 30d

Description

I use markovify 9.0.0. When I try to generate a text in French, it naturally contains accents such as é, è, à, â, etc.

However, these characters are not displayed correctly in the console output, showing instead strange characters such as Ã, ç, â, etc. My corpus is properly encoded in UTF-8.

I saw that this problem was solved in version 0.8.3, why does it still occur in version 0.9.0?

Would anyone have a solution?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with markovify 0.9.0, a French UTF-8 corpus, and console output, then compare the behavior with version 0.8.3. Trace where text encoding reaches the console and verify that accented characters display correctly; done means French accents appear intact in the output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.