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

Unicode not supported #25

Open
lawrencepa opened this issue Oct 21, 2019 · 4 comments
Open

Unicode not supported #25

lawrencepa opened this issue Oct 21, 2019 · 4 comments

Comments

@lawrencepa
Copy link

I call "WriteTag" with unicode characters and the MP3 title was updated with "???:????". Apparently it does not support unicode characters.

@spottedmahn
Copy link

I've seen Unicode code in the code so there must be some type of support😃. Can you upload the file?

Can you share more details? What's the current title value?

@alucard-o
Copy link

alucard-o commented May 15, 2022

I can reproduce this bug.
Example of code below :

tag.Title = "Kid Chameleon — Box ✅ Manual ✅";
[...]
mp3.WriteTag(tag, WriteConflictAction.Replace);

The result text in the tag is :
Kid Chameleon - Box ? Manual ?
It should be :
Kid Chameleon — Box ✅ Manual ✅

@shamork
Copy link

shamork commented Oct 6, 2022

I can reproduce this bug. Example of code below :

tag.Title = "Kid Chameleon — Box ✅ Manual ✅";
[...]
mp3.WriteTag(tag, WriteConflictAction.Replace);

The result text in the tag is : Kid Chameleon - Box ? Manual ? It should be : Kid Chameleon — Box ✅ Manual ✅

I've solved your problem! @alucard-o

tag.Title = "Kid Chameleon — Box ✅ Manual ✅";//❤ implicitly converted string to TextFrame, which EncodingType is default encoding.❤

/***❤❤important line❤❤***/
tag.Title.EncodingType = Id3TextEncoding.Unicode;
/***❤❤important line❤❤***/

mp3.WriteTag(tag, WriteConflictAction.Replace);

@alucard-o
Copy link

Oh thanks @shamork !
I forgot to update this issue, i solved it the same way some time ago.

tag.Title = new Id3.Frames.TitleFrame()
{
    EncodingType = Id3TextEncoding.Unicode,
    Value = "Kid Chameleon — Box ✅ Manual ✅"
};

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

No branches or pull requests

4 participants