-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Description
Enabling UTF-8 encoding by default in lib runtime.
Problem Statement
We've encountered UI issues caused by the console using non-UTF-8 encodings. Since RazorConsole relies heavily on Unicode rendering, I propose enabling UTF-8 by default in the library runtime.
Proposed Solution
Add a small runtime initializer that safely switches the process to UTF-8:
public static class RuntimeEncoding
{
public static void EnsureUtf8()
{
try
{
Console.InputEncoding = Encoding.UTF8;
Console.OutputEncoding = Encoding.UTF8;
}
catch
{
// Ignore – some environments don't allow changing encodings
}
}Alternatives Considered
No response
Additional Context
No response
Contribution
- I'd be willing to contribute this feature
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request