🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1752

Re: HTTP and Unicode web pages

#1752
From: Remy Lebeau (TeamB)
Date: Tue, 07 Nov 2006 17:42
24 lines
1643 bytes
"Stefano Bonifazi" <stefboombastic@email.it> wrote in message
news:45504f4b@newsgroups.borland.com...

> in that page there are again those different characters something like:
>
> ����� ��������� ��������� ������� ������ ��������

That is because that is what the server is actually sending to begin with.
You can verify that for yourself using a packet sniffer, such as Ethereal
()http://www.ethereal.com, to look at the data being transmitted.

> if use TntMemo1->Lines->LoadFromStream(pstream); nothing is shown

Did you remember to reset the stream's Position back to 0 after Get() exits?

> if i load in a WideString this way
<snip>
> the same ugly characters are showed :(

As they should be.


Gambit
Technical Details
Message-ID: <4550c617$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45504f4b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b86c04237df4f2b2
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <45504f4b@newsgroups.borland.com>
Subject: Re: HTTP and Unicode web pages 
Date: Tue, 7 Nov 2006 09:42:27 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <4550c617$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1162921495 69.169.4.232 (7 Nov 2006 09:44:55 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail