Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect encoding from string? #166

Open
foxi69 opened this issue Jan 29, 2024 · 2 comments
Open

Detect encoding from string? #166

foxi69 opened this issue Jan 29, 2024 · 2 comments
Labels

Comments

@foxi69
Copy link

foxi69 commented Jan 29, 2024

Can i get proper encoding from text like this? "Español"

@304NotModified
Copy link
Member

Well the encoding in a string is always UTF 16.

.NET uses UTF-16 to encode the text in a string. A char instance represents a 16-bit code unit.

From https://learn.microsoft.com/en-us/dotnet/standard/base-types/character-encoding-introduction

@foxi69
Copy link
Author

foxi69 commented Feb 1, 2024

Okay, and can I convert this to the correct character set?
It could be "Español"

Btw it came from Xabe.FFmpeg SubtitleStream.Title prop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants