Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12115
| From | "R.Wieser" <address@not.available> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Textstream Write |
| Date | 2019-05-01 10:01 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <qabjo3$1clv$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <qa9gfo$1qi$1@dont-email.me> <qa9snk$1rhs$1@gioia.aioe.org> <qa9v5s$vuj$1@dont-email.me> <qaa856$1hhs$1@gioia.aioe.org> <qaadfo$t2d$1@dont-email.me> |
Mayayana, > That's not relevant. It's only internal But its that "only internal" what VBS/IE is working with, and why the ANSI only output method throws up its hands when you ask it to write such content to file. ... > for i = 1 to len(s) > s2 = s2 & CStr(Asc(Mid(s, i, 1))) > next Suggestion: Check what the output of that CStr is in every loop-step there. Provide it the problem char plus a few before and after and see what the "s2" strings becomes. You might well see that the "s2" builds normally upto the problem char, and than disappears altogether (as far as I remember adding a null to a string doesn't work that well). Also try to see what you get when you replace that CStr( with "|" & hex( > IE has apparently gone unicode-16 with it. Thats what I said, VBS/IE internally uses wide-character. :-) > Negative numbers for &#? I've never seen it. No, negative numbers when you AscW a character. > As you probably know, when you ask IE for > DOM data you get the IE version. No, I didn't. I've not used IE for quite a while now, and have never bothered to look at its DOM. But in that case, why don't you try to WriteFile that converted string /before/ you give it to IE ? You know, trying to eliminate possible problem points. If you're right the resulting file should be OK. But if that file than again (still) is empty than the problem lies elsewhere ... > That one 9660 seems to infect the whole thing. Or any of the gazillion other multi-byte characters. Like forward and backward single and double quotes, dashes of different lengths, a triplet of dots, etc. I often save, using FireFox, webpages (documentation) to file. Quite a few of them show, when loaded into an ANSI-only editor, funny groups of symbols sprinkled throut the text. Yes, those multi-byte characters. In other words, delivering webpages as multi-byte (as opposed to ANSI with html entities or encodings for the "special" characters) is not uncommon at all. Regards, Rudy Wieser
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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