I have been using the charset windows-1252 for a while, but it was
pointed out to someone else in this group recently that it's a
Microsoft creation (I'm sure I'm getting my facts wrong or skewed) and
therefore not good for cross-platform browsing.
Anyway, I am beginning my road to recovery (ie, breaking my addiction
to authoring only for IE) and I would like to know what is the
preferred charset?
I have tried a search and only find immense lists that make me
cross-eyed without ever telling me which to use to utilize a full
range of characters and have them display the way I intend on
English-speaking machines.
I'm not sure of the proper term, but I always use the & character
substitutes for anything that doesn't show up on my keyboard so,
ideally, the charset should display those, right? (For instance, if I
want to display Montréal, I would input Montréal .)
Thanks! 22 13970
Jane Withnolastname <Ja************ **********@yaho o.com> wrote: Anyway, I am beginning my road to recovery (ie, breaking my addiction to authoring only for IE) and I would like to know what is the preferred charset?
Probably UTF-8.
;K
On Wed, 27 Aug 2003 22:13:47 -0500, Mad Bad Rabbit
<ma**********@y ahoo.com> wrote: Jane Withnolastname <Ja************ **********@yaho o.com> wrote:
Anyway, I am beginning my road to recovery (ie, breaking my addiction to authoring only for IE) and I would like to know what is the preferred charset?
Probably UTF-8.
I tried UTF-8 a while ago (thinking it was the right one) and went
back to the windows one because I got odd results from it. However,
now that you have suggested it, I have gone back to the file I had
problems with and see that I was using open and close quotes (instead
of the regular quotes on the keyboard). I don't know how they got in
there, because I really had to search to figure out how I got them, so
I must have copy&pasted it.
Anyway, here's a sorta related question: is it acceptable to write
ASCII codes into html? As in the above example, it would be for
the open quote, and for the close quote.
Is that acceptable, or is there another way, similar to the preferred
method of using é rather than é?
Or would I be better advised to stick with regular quotes and never
mind special ASCII-only characters?
And while we're on quotes ... is it acceptable to use the quote key to
put them in a file, or is it better to use "?
Thanks again. I'm feeling quite stupid right now :)
P.S. Is there a list somewhere of all the alternate characters? I'd
try a search, but I don't know the proper term for these.
Jane Withnolastname <Ja************ **********@yaho o.com> wrote: Anyway, here's a sorta related question: is it acceptable to write ASCII codes into html? As in the above example, it would be for the open quote, and for the close quote.
Not if you're declaring the codeset to be Unicode.
isn't a double-quote unless you use codeset 1252.
To find a given character in Unicode, go to: http://www.unicode.org/charts/
and look at (for example) "General Punctuation" chart.
In Unicode, the double-quotes you want are assigned
codes “ and ”
Is that acceptable, or is there another way, similar to the preferred method of using é rather than é?
Good question: yes there are. See http://www.htmlhelp.com/reference/ht...s/special.html
You can use entities “ and ” for these characters.
(which is a lot easier to remember than the numeric codes).
P.S. Is there a list somewhere of all the alternate characters? I'd try a search, but I don't know the proper term for these.
They're called "HTML entities", and the above site has lists.
HTH
;K
Jane Withnolastname wrote: I have been using the charset windows-1252 for a while, but it was pointed out to someone else in this group recently that it's a Microsoft creation (I'm sure I'm getting my facts wrong or skewed) and therefore not good for cross-platform browsing. Anyway, I am beginning my road to recovery (ie, breaking my addiction to authoring only for IE) and I would like to know what is the preferred charset? I have tried a search and only find immense lists that make me cross-eyed without ever telling me which to use to utilize a full range of characters and have them display the way I intend on English-speaking machines. I'm not sure of the proper term, but I always use the & character substitutes for anything that doesn't show up on my keyboard so, ideally, the charset should display those, right? (For instance, if I want to display Montréal, I would input Montréal .)
I use ISO-8859-1 because it allows me to dispense with character
references like é the source readability is much better without
those codes.
Headless
--
Email and usenet filter list: http://www.headless.dna.ie/usenet.htm
Mad Bad Rabbit <ma**********@y ahoo.com> wrote: Anyway, here's a sorta related question: is it acceptable to write ASCII codes into html? As in the above example, it would be for the open quote, and for the close quote.
Not if you're declaring the codeset to be Unicode. isn't a double-quote unless you use codeset 1252.
is undefined in HTML, no matter what you "declare" anywhere.
This has been discussed dozens of times.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
On Thu, Aug 28, Mad Bad Rabbit inscribed on the eternal scroll: Jane Withnolastname <Ja************ **********@yaho o.com> wrote:
Anyway, here's a sorta related question: is it acceptable to write ASCII codes into html?
ASCII is a 7-bit code, and has displayable characters in the range 32
(space) to 126 inclusive. (x20 to x7e).
As in the above example, it would be for the open quote, and for the close quote.
No.
Not if you're declaring the codeset to be Unicode.
It would be helpful if you'd refrain from offering answers until you
understand them.
isn't a double-quote unless you use codeset 1252.
&#number; notations in the range 127 to 159 inclusive are undefined in
HTML, and illegal in XHTML. No matter what this or that browser might
happen to display when presented with them.
I don't believe your term "codeset" means anything in HTML, SGML, XML
or XHTML. It seems to be some confused conflation of the terms
"character code" (or maybe "code page") and "character set". These
are distinct concepts in HTML/XHTML, and any attempt to muddle them up
is sure to be unhelpful.
have fun.
In article <in************ *************** *****@4ax.com> in
comp.infosystem s. www.authoring.html, Jane Withnolastname
<Ja************ **********@yaho o.com> wrote: On Wed, 27 Aug 2003 22:13:47 -0500, Mad Bad Rabbit <ma**********@ yahoo.com> wrote:Jane Withnolastname <Ja************ **********@yaho o.com> wrote: I would like to know what is the preferred charset? Probably UTF-8.
Good advice. See
<http://ppewww.ph.gla.a c.uk/~flavell/charset/checklist.html> .
Anyway, here's a sorta related question: is it acceptable to write ASCII codes into html?
Yes, though it's unnecessary excel;t for > and &.
As in the above example, it would be for the open quote, and for the close quote.
No, those are not ASCII. They're not even Unicode; they are
Microsoft creations. Any reference between and
inclusive is wrong.
You can create an open quote in three legal ways:
" “ “
and a close quote in three legal ways:
" ” ”
The straight quote " works in all browsers without exception. If its
appearance is acceptable to you (and it should be, since a great
many Web sites use it), you need look no further.
If you really want curly quotes, use the "entities" or the numeric
references. Most browsers treat them exactly the same; a few (like
Netscape 4 if I recall correctly) will handle the numeric references
correctly but not the entitles.
Is that acceptable, or is there another way, similar to the preferred method of using é rather than é?
How is that the "preferred method"? The two are the same. As far as
I know, browser support is the same.
Or would I be better advised to stick with regular quotes and never mind special ASCII-only characters?
Yes, I think so, if by "regular quotes" you mean the standard
double-quote character on the keyboard. I don't know what you mean
by "ASCII-only characters".
And while we're on quotes ... is it acceptable to use the quote key to put them in a file, or is it better to use "?
There is no reason to use " ever, that I am aware of.
P.S. Is there a list somewhere of all the alternate characters? I'd try a search, but I don't know the proper term for these.
"Numeric character references", but here's a terrific list: http://www.alanwood.net/demos/ent4_frame.html
For numbers up to 255, it shouldn't matter whether you use the
number or the entity. For higher numbers, some browsers do a better
job with the number than with the entity.
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Stan Brown <th************ @fastmail.fm> writes: There is no reason to use " ever, that I am aware of.
<img src="quotechar. jpg" alt=""">
--
Chris This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CJ Oxx |
last post by:
I have a problem with browser charset recognition when using PHP 4.1.2
(this is the PHP version which our hosting company provides).
For charset recognition, I use the following meta-tag:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Here is what I have tried so far:
- Regular html page: charset is properly recognised
- PHP page which just prints out the html: charset is not properly
recognised (ISO charset is...
|
by: lawrence |
last post by:
How do I get PHP to tell the server that when I echo text to the
screen, I need for the text to be sent as UTF-8? How does Apache know
the right encoding when all the text is being generated by PHP? If I
build a content management system (I have) and I make sure that all
input is encoded as UTF-8, how will the
server know that the text in the MySql database is UTF-8?
I'm taking all user input and using this function on the input:
...
|
by: Ben Sharvy |
last post by:
I don't reallly understand charsets, but I see that you are supposed
to declare one. I am putting a paper up in HTML. It uses some special
characters, like umlauts and diacriticals. The biggest problem I've
had with it is creating characters with lines over them (macrons), as
is done to indicate a long vowel sound, for example. There is no way
to do this using my word processor. Is there a way to do it in an HTML
document? Which charset...
|
by: Andrew Thompson |
last post by:
I was recently loading an HTML editor
so I could find the charcode of that
particularly obscure character using the
editor's 'insert special character' dialog.
It occured to me there had to be a
better way. There are probably dozens,
but here is my solution..
http://www.physci.org/codes/charset.jsp
|
by: The Bicycling Guitarist |
last post by:
My web site has not been spidered by Googlebot since April 2003. The site in
question is at www.TheBicyclingGuitarist.net/ I received much help from this
NG and the stylesheets NG when updating the code before then.
My host's tech guy just sent me the following. Isn't it okay to specify
UTF-8 as the charset in the HTTP headers at the server level? Isn't it okay
to have validated XHTML 1.0 strict code?
...
| |
by: Xiaotian Sun |
last post by:
I added the following line to the header of my html file
<meta http-equiv="content-type" content="text/html; charset=utf-8">
hoping browsers will use UTF-8 encoding. But all browsers I tried still
use ISO-8859-1.
What did I do wrong?
Thanks,
|
by: Chris |
last post by:
Hi,
I am relatively new to using CDO.Message, and I desperately need some
help!
I have an ASP 3.0 application that uses CDO to send automatic alerts
through Exchange 2003. How do I determine which charset to use for the
objMessage.BodyPart.CharSet?
The users of this application typically enter the HTMLBody message
|
by: godyuyu |
last post by:
i need change the system preferred audio device in my vc++ project ,but i can't find the resolution.I just want to know the method.
|
by: gmclee |
last post by:
Hi there,
I am writing a program to load HTML from file and send it to IE
directly. I've met some problem in charset setting. Most of HTML have
charset "us-ascii", for some reason, some UNICODE TEXT will be
inserted into the HTML before sending to IE. The problem is
1) Can I specify special charset for some component, e.g.
<span charset="UTF-8"SOME UNICODE HERE</spand>
2) If "NO" for 1), so any way to change the charset of the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |