FROM : Johan Augustsson
DATE : Mon Jul 10 21:06:54 2006
Hi!
Thank you for your answers!
Wow, The problem was very simple. After getting the string I put the
value in an NSMutableDictionary, then printed the description of the
dictionary NSLog([myDict description]). When you asked me how i
generated the description I started to experiment with this.
For some reason [myDict description] doesn't give me same result as
NSLog([myDict objectForKey:@"myKey"]), but that won't be a problem
for me.
Sorry for the inconvenience.
10 jul 2006 kl. 12.43 skrev j o a r:
>
> On 10 jul 2006, at 18.46, Johan Augustsson wrote:
>
>> Description of NSData: "424ad652" The problem is the third byte
>> D6 witch according to latin1 spec should be "Ö"
>
> How do you generate this NSData? Are you certain that it's a
> representation of a string in Latin1 encoding? It sounds like you
> are, I'm just double-checking.
>
>> Description of my created string: "BJ\U00d6R"
>
> How do you generate this description?
>
> j o a r
>
>
>
DATE : Mon Jul 10 21:06:54 2006
Hi!
Thank you for your answers!
Wow, The problem was very simple. After getting the string I put the
value in an NSMutableDictionary, then printed the description of the
dictionary NSLog([myDict description]). When you asked me how i
generated the description I started to experiment with this.
For some reason [myDict description] doesn't give me same result as
NSLog([myDict objectForKey:@"myKey"]), but that won't be a problem
for me.
Sorry for the inconvenience.
10 jul 2006 kl. 12.43 skrev j o a r:
>
> On 10 jul 2006, at 18.46, Johan Augustsson wrote:
>
>> Description of NSData: "424ad652" The problem is the third byte
>> D6 witch according to latin1 spec should be "Ö"
>
> How do you generate this NSData? Are you certain that it's a
> representation of a string in Latin1 encoding? It sounds like you
> are, I'm just double-checking.
>
>> Description of my created string: "BJ\U00d6R"
>
> How do you generate this description?
>
> j o a r
>
>
>
| Related mails | Author | Date |
|---|---|---|
| Johan Augustsson | Jul 10, 18:46 | |
| Nick Zitzmann | Jul 10, 19:00 | |
| j o a r | Jul 10, 19:43 | |
| Johan Augustsson | Jul 10, 21:06 | |
| Shawn Erickson | Jul 10, 21:15 |






Cocoa mail archive

