discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString stringWithUTF8String: length:


From: J . Aaron Pendergrass
Subject: NSString stringWithUTF8String: length:
Date: Thu, 29 Jan 2004 22:43:41 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey folks,
I'm working on a client for apple's daap protocol (iTunes music sharing). And it uses UTF8 string encoding when sending strings across the network, so I frequently use NSString's stringWithUTF8String: length: (or initWithUTF8String: length:), and it usually works just fine. But sometimes there is some extra garbage at the end of the NSString. For instance: The string "Hip Hop" (no quotes) sometimes becomes "Hip Hop@" and "Comedic" is sometimes "Comedic@id"
"Top 25 Most Played"  comes out as "Top 25 Most Played19"  and so on.

I'm pretty sure I have the length and everything set correctly.
Does anyone know what the problem could be?
thanks
aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAGdLyI2nxyLuy2rwRAjT2AJ0Y+0LizyrE2SkIsYroe+/mluU7AwCeMsoC
6N3JGvfcsXjexNhqm/JiZaE=
=RPW4
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]