Recent

Author Topic: UTF-16 to UTF-8 conversion  (Read 6924 times)

Kunstbanause

  • New Member
  • *
  • Posts: 47
UTF-16 to UTF-8 conversion
« on: June 11, 2010, 08:37:43 am »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
Re: UTF-16 to UTF-8 conversion
« Reply #1 on: June 11, 2010, 09:44:43 am »
UTF8Encode(WS);

 

TinyPortal © 2005-2018