Does gstreamer supports utf-8/unicode?

Χρήστος Τριανταφύλλης christriant1995 at gmail.com
Mon Mar 5 05:13:59 PST 2012


i am using discoverer to get the tags from a file that why i am using
 newitem.discover_uri("file://" + path)

it is the same to use the one you recommended?

2012/3/5 Tim-Philipp Müller <t.i.m at zen.co.uk>

> On Mon, 2012-03-05 at 14:56 +0200, Χρήστος Τριανταφύλλης wrote:
>
> > i am writing a music player and i want to know if gstreamer supports
> > utf-8 and unicode because i have a problem here:
> >
> > info = newitem.discover_uri("file://" + path)
> > UnicodeEncodeError: 'ascii' codec can't encode characters in position
> > 19-25: ordinal not in range(128)
> >
> > the program is written in Python
>
> That is not how you create a valid URI from a filename.
>
> Use gst.filename_to_uri(path) instead (on Linux/*nix systems the
> filename is just a bunch of bytes in whatever encoding the filesystem
> uses. On Windows, the filename must be in UTF-8 format).
>
> Cheers
>  -Tim
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120305/96259419/attachment.html>


More information about the gstreamer-devel mailing list