Re: do i have to convert each unichar on ppc and intel

2008-04-30 Thread Jean-Daniel Dupas
Le 30 avr. 08 à 17:24, Nick Rogers a écrit : hi, I'm using: [NSString stringWithCharacters:gptEntry.partName length:36]; where gptEntry struct have been filled in from the disk. The string shows correct on ppc, while shows garbage on intel. So how can I convert an entire such unichar array to c

do i have to convert each unichar on ppc and intel

2008-04-30 Thread Nick Rogers
hi, I'm using: [NSString stringWithCharacters:gptEntry.partName length:36]; where gptEntry struct have been filled in from the disk. The string shows correct on ppc, while shows garbage on intel. So how can I convert an entire such unichar array to correct-endian format? Is there any built-in s