Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12120
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Textstream Write |
| Date | 2019-05-01 10:47 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <qacbm7$864$1@dont-email.me> (permalink) |
| References | (5 earlier) <qaadfo$t2d$1@dont-email.me> <qabjo3$1clv$1@gioia.aioe.org> <qac42q$ppk$1@dont-email.me> <qac8r0$c6m$1@gioia.aioe.org> <qac9hb$fak$1@gioia.aioe.org> |
"R.Wieser" <address@not.available> wrote | Ah. I just realized: You are not loading the page itself, but are letting | IE do that for you. Only after that you take a peek at the DOM. In that | case IE already has done its conversions (like from multi-byte to | wide-character), so you can't save it /before/ giving it to IE (as its IE | doing the loading). | Yes. | But that just means that you have to work with whatever IE gives you when | you do your "innerHTML" extraction of your DIV (which still is a perfect | representation of what you saw in it!). Not much choice there, right ? | :-) | Right. | But do yourself a favour and /convert/ those non-ANSI characters (instead of | just dropping them). If you don't you /will/ get into problems with pages | that will have gotten a different meaning than the origional. (just imagine | removing all end-of-line colons from a few lines of text ....) | All bytes are ANSI characters. You don't seem to be distinguishing between UTF-8 bytes and 2-byte unicode. There's no problem loading and saving with things like curly quotes, though they can show corrupted. The problem is only with HTML entities over 255. If you look at the original page code you'll see after SHARE is ▼. IE is converting that to the unicode character (or something more quirky). If "▼" is removed the page works fine. I'm not worried about losing upside down triangle characters. :) But I am actually converting much of the UTF-8, as I mentioned above. I'm converting curly quotes to ", etc.
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