Forum > General

UTF-16 to UTF-8 conversion

(1/1)

Kunstbanause:
Hi,

I try to read out the ID3v2-Tags of MP3-files.
My code works but when a tag was saved using UTF-16 (with BOM) I get wrong data.

Now how can I convert this UTF-16 strig to utf-8 for displaying it correctly? foobar2000 is able to display it.

Since I try to get a platform independant code,  I prefer code I can use not only on Windows.

I hope someone can help me.

theo:
UTF8Encode(WS);

Navigation

[0] Message Index

Go to full version