DBus API problems & UTF-8

Ross Burton ross at burtonini.com
Mon Jun 12 05:39:59 PDT 2006


On Mon, 2006-06-12 at 13:47 +0100, Daniel P. Berrange wrote:
> If you're not already using UTF-8 in your C program, then its at most one 
> single method call to convert. Unless your strings are absolutely enourmous
> the performance hit of the conversion shouldn't show up as a large hotspot.
> In any case this is a small price to pay for cross-application interoperability. 

Don't forget that if you can safely assume that all strings you'll be
dealing with are ASCII, then you don't need to do anything as UTF-8
contains the ASCII character set.

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF





More information about the dbus mailing list