[Ffmpeg-devel] retrieving asf textual info in other languages

Måns Rullgård mru
Tue May 17 11:13:31 CEST 2005


Hauke Duden <H.NS.Duden at gmx.net> writes:

> M?ns Rullg?rd wrote:
>
>>"??" <c_liao at openfind.com.tw> writes:
>>
>>
>>
>>>>note, the thing must be converted to utf8
>>>>
>>>>
>>>>Is it acceptable to use iconv() for the conversion?
>>>>
>>>>
>>>isn't libiconv GPL'ed ? so.. the simplest solution is just to treat
>>>it as a buffer and let user handle it, however I haven't dived into
>>>other parts of the code so not sure whether will cause any
>>>problems. or use iconv as default routine for conversion and have a
>>>callback interface for user to define their own conversion routine
>>>if they don't wish to use GPL'ed iconv.
>>>
>>>
>>
>>iconv is part of glibc, and specified by SUSv3, so there should be no
>>legal implications from using it, even if some particular
>>implementation is under the GPL.
>>
>>My main concern was portability to non-SUS platforms.
>
> Sorry to intrude here, but UTF-8 is very simple. Why not simply
> convert it yourself? Below is a simple striaghtforward encode routine
> from unicode char to UTF-8, if you need one. Since UCS-2 is a subset
> of Unicode this should work for it as well  Use it as you like.

This doesn't deal with nasty things like surrogate pairs.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list