Remove ÿþ from string

ÿþ is 0xfffe in UTF-8; this is the byte order mark in UTF-16. You can convert your string to UTF-8 with iconv or mb_convert_encoding(): $trackartist1 = iconv(‘UTF-16LE’, ‘UTF-8’, $trackartist1); # Same as above, but different extension $trackartist1 = mb_convert_encoding($trackartist1, ‘UTF-16LE’, ‘UTF-8’); # str_replace() should now work $trackartist1 = str_replace(‘ÿþ’, ”, $trackartist1); This assumes $trackartist1 is … Read more

How to read and write ID3 tags to an MP3 in C#? [closed]

Taglib# is the best. It’s direct port of the TagLib C library to C#. To install TagLib#, run the following command in the Package Manager Console in Visual Studio. PM> Install-Package taglib The NuGet distribution of taglib-sharp can be found at http://nuget.org/packages/taglib. The official source code repository is at https://github.com/mono/taglib-sharp. Here’s an example using the … Read more