[mpris] [ANN] MPRIS v2.0
Lennart Poettering
lennart at poettering.net
Thu Aug 12 20:17:49 CEST 2010
On Thu, 12.08.10 18:13, Zeeshan Ali (Khattak) (zeenix at gmail.com) wrote:
> >> The requirement that "Each element must only contain the ASCII
> >> characters "[A-Z][a-z][0-9]_" does mean that a map might have to be
> >> maintained. Or some sort of coding and decoding function that I
> >> haven't heard of needs to be used, or else we're kinda screwed when it
> >> comes to non-ASCII characters in the file name. (If it allowed % it
> >> would be easy, just use HTML encoding, but it doesn't).
> >
> > Ah, this is indeed an issue.
> > Using base64 encoding would work though.
>
> Yeah, we had a similar issue with object IDs: Putting them in URLs
> and making crappy upnp devices (that can't deal with various non-ASCII
> characters in URIs) happy and we solved it using base64 encoding.
For the sake of readability of what d-feet shows you I'd always
recommend using escaping instead of full base64, i.e. just replacing
what cannot be used in a D-Bus object path, not everything.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the mpris
mailing list