If you have a PH account, you can customize your PH profile.

MP3 programming

Moderators: Sephiroth
Number of threads: 183
Number of posts: 381

This Forum Only
Post New Thread

Report
ID3v2 Frame TIT2 Posted by carrotcake1029 on 20 Feb 2009 at 9:35 PM
I decided to recently start parsing some of my mp3 files to see what type of tags they had. Then I ran across one with a strange formatting in the TIT2 frame, which is a title. It had the name of my song, but each letter was separated by a 0x00 byte. None of my media players have trouble reading this. Any suggestions to what the problem could be?
Report
Re: ID3v2 Frame TIT2 Posted by Sephiroth on 26 Feb 2009 at 11:32 AM
Sounds like it was stored in UNICODE. a "wchar_t" is two bytes wide instead of one. The world runs on UNICODE now, so you may wind up with more files like this one in the future, unless you use an old Windows 9X application to edit them. I'll post a link below to some information that helped me get started with UNICODE in my C++ programs a while back. Maybe it can explain this to you.

http://www.cprogramming.com/tutorial/unicode.html

-Sephiroth



 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.