[MPlayer-dev-eng] a patch to show Chinese characters correctly in terminal
ideal
idealities at gmail.com
Sun Apr 4 17:27:06 CEST 2010
Hi, Jehan
Thanks for your reply. That lets me learn much new knowledge on id3 tag.
In spec mp3 tag should be encoded in iso-8859-1 or UTF-8, UTF-16, that means
a GB* encoded tag mp3 file is illegal, but when mp3 file is created, there
is no guarantee that tag encoding is corrent? or it only depends on the
software which is used to create mp3 and edit id3 tag?
Thanks!
ideal
2010/4/4 <mplayer-dev-eng-request at mplayerhq.hu>
> Hi,
>
> sorry for my previous message. It was far too long. Anyway I had a
> fast look at the ID3v2.4 spec ( http://www.id3.org/id3v2.4.0-structure
> ) and it appears that only ISO-8859-1, UTF-16 and UTF-8 are allowed
> (and they can be differentiated with a BOM or termination bytes):
>
> « Possible encodings:
>
> $00 ISO-8859-1 [ISO-8859-1]. Terminated with $00.
> $01 UTF-16 [UTF-16] encoded Unicode [UNICODE] with BOM. All
> strings in the same frame SHALL have the same byteorder.
> Terminated with $00 00.
> $02 UTF-16BE [UTF-16] encoded Unicode [UNICODE] without BOM.
> Terminated with $00 00.
> $03 UTF-8 [UTF-8] encoded Unicode [UNICODE]. Terminated with $00. »
>
> So if a mp3 file uses another codeset, then the media file is bugged
> and according to me, this should not be the role of mplayer to work
> around bugged files (especially when it seems impossible, cf. last
> email).
>
> As for vorbis comments ( http://www.xiph.org/vorbis/doc/v-comment.html
> ), they ar UTF-8 only:
>
> « Field names should not be 'internationalized'; this is a concession
> to simplicity not an attempt to exclude the majority of the world that
> doesn't speak English. Field contents, however, use the UTF-8
> character encoding to allow easy representation of any language. »
>
> I have not looked other specs for other media format...
> Bye.
>
> Jehan
>
>
More information about the MPlayer-dev-eng
mailing list