Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12111

Re: Textstream Write

From "R.Wieser" <address@not.available>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: Textstream Write
Date 2019-04-30 21:37 +0200
Organization Aioe.org NNTP Server
Message-ID <qaa856$1hhs$1@gioia.aioe.org> (permalink)
References <qa6scj$rb4$1@dont-email.me> <qa9gfo$1qi$1@dont-email.me> <qa9snk$1rhs$1@gioia.aioe.org> <qa9v5s$vuj$1@dont-email.me>

Show all headers | View raw


Mayayana,

> I understand. What I meant was that all 256 values
> correspond to ANSI characters.

:-) But thats the problem: You have /way/ more than 256 possible values in 
that string.   You're using VBScript, in it internally stores its text in 
widechars (two bytes a piece), meaning you've got not (just) 256, but 65536 
values on your hands.

>  When I try to use Asc or AscW or AscB to see what
> IE thinks is there, they all fail.

Thats odd.    Could you show the code you're using to display the Asc values 
of your webpage string ?    And could you retry with a fully ASCII string 
(just to see if its the code or the string thats causing the problems) ?

And you could also try to pull your string thru that function I posted - 
just to see if it has got the same problem.

>  So I think the issue here is not a problem with
> UTF-8 in Textstream but rather I need to filter
> out &#[over 255]; before giving it to IE in the first place.

Don't forget the under zero ones.   You're working with signed ints. (Its 
what bit me in the behind the first time :-) ).

And I'm not quite sure I follow.  Wasn't the problem with saving to a 
textfile ?

Regards,
Rudy Wieser

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-04-29 08:55 -0400
  Re: Textstream Write JJ <jj4public@vfemail.net> - 2019-04-30 17:45 +0700
    Re: Textstream Write "R.Wieser" <address@not.available> - 2019-04-30 13:21 +0200
  Re: Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-04-30 08:51 -0400
    Re: Textstream Write "R.Wieser" <address@not.available> - 2019-04-30 18:22 +0200
      Re: Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-04-30 13:01 -0400
        Re: Textstream Write "R.Wieser" <address@not.available> - 2019-04-30 21:37 +0200
          Re: Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-04-30 17:06 -0400
            Re: Textstream Write "R.Wieser" <address@not.available> - 2019-05-01 10:01 +0200
              Re: Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-05-01 08:37 -0400
                Re: Textstream Write "R.Wieser" <address@not.available> - 2019-05-01 16:00 +0200
                Re: Textstream Write "R.Wieser" <address@not.available> - 2019-05-01 16:12 +0200
                Re: Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-05-01 10:47 -0400
                Re: Textstream Write "R.Wieser" <address@not.available> - 2019-05-01 19:09 +0200
  Re: Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-05-04 15:26 -0400
    Re: Textstream Write JJ <jj4public@vfemail.net> - 2019-05-05 20:15 +0700
      Re: Textstream Write "Mayayana" <mayayana@invalid.nospam> - 2019-05-05 10:19 -0400

csiph-web