To answer the specific problem you are having, think through what you have
1) You copy garbage text to the clipboard
2) You paste garbage text into notepad
3) You ask notepad to save it, converting it to UTF-8
4) Notepad converts the whole file to UTF-8
Step #4 does not change the encoding while leaving the bytes after it
unchanged... it converts them and it does so without losing information.
What YOU want is something that will convert the information using the 1256
code page using the MultiByteToWideChar API in Windows. Notepad is not going
to do that for you.
----- Original Message -----
From: "Michael (michka) Kaplan" <email@example.com>
To: "Munzir Taha" <firstname.lastname@example.org>
Sent: Tuesday, July 18, 2000 6:02 PM
Subject: Re: Designing a multilingual web site
> From: "Munzir Taha" <email@example.com>
> >From: "Michael (michka) Kaplan" <firstname.lastname@example.org>
> > >You should explicitly set the encoding in the header of your page, and
> > >leave it for the browser to guess. The following should go all in one
> > >at the very top of the header:
> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
> > Yes, I understand the point of putting the header in each page
> > But my question is how did the browser guessed it?
> Browsers sometimes guess, especially IE... you asked it to AutoDetect....
> with a feature that has a name like THAT it has to guess right sometimes,
> right? :-)
> > Another question: I received a message in Arabic thru Outlook 2000, It
> > doesn't appear right until I changed the encoding to Arabic (Windows). I
> > copied the (garbage) text (Which is encoded US-ASCII) and paste it to
> > notepad in Win2k. I saved the file into all available formats and
> > each file to .htm. I then tried the different encodings but no use, the
> > garbage text doesn't changed at all.
> > I then went again to outlook, changed the encoding of the message into
> > Western European (Windows), saved it as Ansi text, renamed it into .htm,
> > changed the encoding to Arabic (Windows) and it's OK. Can you please
> > to me why the first failed whereas the second succeeded?
> I think we are really getting way too off the topic of THIS group here,
> this thead is wandering a little out of control. To your question above, I
> can honestly say I have no earth clue as I do not use Outlook, at all.
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:05 EDT