• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binary primary keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary primary keys


  • Subject: Re: Binary primary keys
  • From: Anjo Krank <email@hidden>
  • Date: Thu, 26 Nov 2009 21:15:19 +0100

As I was saying: UTF-8 has particular requirements to the character data. You can't simply put any old byte array in it. So even the first part wouldn't work. ISO-Latin, would, for that matter, because it's simply a map of 0-255->some chars.

Cheers, Anjo



Am 26.11.2009 um 19:05 schrieb Lachlan Deck:

> On 27/11/2009, at 4:32 AM, Anjo Krank wrote:
>
>> Am 26.11.2009 um 18:26 schrieb Lachlan Deck:
>>
>>> String hexString = new String(nsdata.bytes(), "UTF-8");
>>
>> This won't work. There are a lot of invalid UTF-8 combinations, so you will get exceptions - if your DB accepts the syntax in the first place.
>
> Well, he had two questions: the first being, 'how do I get a string from NSData'?
> Whether or not that will work via sql is a separate question, no?
>
>> Use bind variables. And why are you using SQL and not a simple fetch spec?
>>
>> Cheers, Anjo
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> with regards,
> --
>
> Lachlan Deck
>
>
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Binary primary keys (From: Jeff Dunnett <email@hidden>)
 >Re: Binary primary keys (From: Chuck Hill <email@hidden>)
 >Re: Binary primary keys (From: Jeff Dunnett <email@hidden>)
 >Re: Binary primary keys (From: Mike Schrag <email@hidden>)
 >Re: Binary primary keys (From: Jeff Dunnett <email@hidden>)
 >Re: Binary primary keys (From: Lachlan Deck <email@hidden>)
 >Re: Binary primary keys (From: Anjo Krank <email@hidden>)
 >Re: Binary primary keys (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Binary primary keys
  • Next by Date: eclipse version
  • Previous by thread: Re: Binary primary keys
  • Next by thread: Re: Binary primary keys
  • Index(es):
    • Date
    • Thread