testcontainers / testcontainers/testcontainers-dotnet

[Enhancement]: Overload ExecScriptAsync with encoding as a parameter

Open
#1,201 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
4.4k
Forks
357
Avg merge
14h 42m
Merged PRs (30d)
16

Description

Problem

Script content contains UTF-8 characters which are not saved properly to MySql db during db initialisation and script execution.

Solution

Giving possibility to define particular encoding as parameter.

Benefit

Extending possibility to handle non-standard characters among different cultures.

Alternatives

Changing Encoding.Default which is not recommended by MS to UTF8

Would you like to help contributing this enhancement?

Yes

Contributor guide

Open the contributing guide

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 locating the ExecScriptAsync entry point and tracing how script content is decoded during MySQL database initialization and execution. The work is done when callers can provide a particular encoding and UTF-8 characters are preserved during both processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, mysql
Domain
api, database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.