InsertContent not working properly

Open
#443 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
backend

Research direction

Start at the InsertContent() entry point and reproduce the issue with the provided HTML containing Serbian Cyrillic text. Compare the generated DOCX output with the same input using English characters; done means Cyrillic text and its HTML formatting are preserved correctly.

Written by the indexing model from the issue text.

Description

Hi,

I'm getting bad data once I passed below string in InsertContent()

<p>Тест 1</p>
<p><strong>Тест Болд</strong></p>
<p><em>Тест ем</em></p>

Values inside of HTML tags are Serbian Cyrilic letters, and if I changed them to EN it will work as expected.

Bellow you can see output in docx that I'm getting.

image

How can this be solved?

Dominant language
C#
Stars
1.9k
Forks
483
PR merge metrics
No merged PRs in 30d

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.

More from xceedsoftware/DocX

All issues in xceedsoftware/DocX

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.