Re: decoding arabic text broken
Re: decoding arabic text broken
- Subject: Re: decoding arabic text broken
- From: Seth Delackner <email@hidden>
- Date: Thu, 4 Aug 2005 12:43:28 +0000
- Mail-followup-to: email@hidden
On Thu, Aug 04, 2005 at 11:35:33AM +0200, Annard Brouwer wrote:
> On 4 Aug 2005, at 05:51, Seth Delackner wrote:
> >(gdb) call (void)NSLog(@"foo: %@", (id)[[NSString alloc]
> >initWithData: rawText encoding: v])
> >foo: ﺣ÷ﺓ
> >
> >For those in non-unicode mail readers, that is "an arabic
> >character, a division symbol, and an arabic character".
> >
> >Wha?
> >
>
> To make sure that you can check what is being logged, I would use -
> writeToFile: o.s.s. and then check it out using TextEdit with
> probably the Unicode encoding. You can't rely on a console being
> correct to display these characters.
My sample code there is just reduced for brevity. The original bug is from looking at the resulting string after having been inserted into an NSTextStorage and displayed in an NSTextView, and is very certainly arabic/mathdivision/arabic.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden