Re: String Building
"Justin Piper" <jpiper@bizco.c om> wrote in message
news:op.s9ptroe dcs3d1w@luxembo urg.psg.bizcote ch.com...[color=blue]
> On Wed, 17 May 2006 15:59:03 -0500, Anthony Jones <Ant@yadayadaya da.com>
> wrote:
>[color=green][color=darkred]
> >> I am surprised by how poorly the Stream object fared.[/color]
> >
> > That'll be due to the encoding the stream object will be performing on
> > the
> > string. It doesn't just dump the unicode string given into the storage
> > but
> > encodes it to the currently selected codepage.[/color]
>
> Ah, that makes sense. In that case, I suspect it doesn't check whether the
> text needs to be re-encoded before doing so, as explicitly setting the
> locale to "en-us" and the Stream object's codepage to "windows-1252"
> didn't have any effect on performance.
>[/color]
All strings in ASP are unicode. Setting the Stream object's encoding to
"UTF-16" might make a difference since it shouldn't have to encode the
string.
[color=blue]
> --
> Justin Piper
> Bizco Technologies
> http://www.bizco.com/[/color]
"Justin Piper" <jpiper@bizco.c om> wrote in message
news:op.s9ptroe dcs3d1w@luxembo urg.psg.bizcote ch.com...[color=blue]
> On Wed, 17 May 2006 15:59:03 -0500, Anthony Jones <Ant@yadayadaya da.com>
> wrote:
>[color=green][color=darkred]
> >> I am surprised by how poorly the Stream object fared.[/color]
> >
> > That'll be due to the encoding the stream object will be performing on
> > the
> > string. It doesn't just dump the unicode string given into the storage
> > but
> > encodes it to the currently selected codepage.[/color]
>
> Ah, that makes sense. In that case, I suspect it doesn't check whether the
> text needs to be re-encoded before doing so, as explicitly setting the
> locale to "en-us" and the Stream object's codepage to "windows-1252"
> didn't have any effect on performance.
>[/color]
All strings in ASP are unicode. Setting the Stream object's encoding to
"UTF-16" might make a difference since it shouldn't have to encode the
string.
[color=blue]
> --
> Justin Piper
> Bizco Technologies
> http://www.bizco.com/[/color]
Comment