[vorbis-dev] UTF-8 in comments

Ralph Giles giles at ashlu.bc.ca
Thu Mar 15 10:39:30 PST 2001



On Thu, Mar 15, 2001 at 04:48:49PM +0100, Daniel Resare wrote:

> 1) Add an option --encoding to oggenc that indicates the encoding of the
> given comment fields. With this information it is possible to iconv()
> the incoming strings to UTF-8 before writing them to the .ogg file. If no
> --encoding is given, a reasonable default should be used (ISO-8859-1
> perhaps? Is there any way to extract information from the current locale
> about what character encoding to expect from user input?)

Is the LOCALE mechanism widely portable? I think just assuming
input/output is in the locale's encoding makes more sense given the
simplicity of oggenc/ogg123. Let the user use conversion tools
themselves if they're doing something 'non UTF-8' with vorbiscomment.

> 3) Add sanity checking in the appropriate place of libvorbis to prevent
> bogous strings to be added as comments.

This is a good idea, though. And of course both mean some i18n work; I'd
be happy to see that go in.
 
IMHO,
 -ralph

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list