Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:41 PM
Andrew Thompson
Guest
 
Posts: n/a
Default SGML Charset explorer..

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

This page is my 'charset explorer', it displays
character codes in a table 456 at a time.

It also has links to a page giving larger
representations of each character. Vis.
http://www.physci.org/codes/char.jsp?char=65
http://www.physci.org/codes/char.jsp?char=84
http://www.physci.org/codes/char.jsp?char=1944

I hope it brings a..
http://www.physci.org/codes/char.jsp?char=9786
...to your mug.

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #2  
Old July 20th, 2005, 06:45 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:
[color=blue]
>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,[/color]

http://www.eki.ee/letter/ is my reference of choice.
[color=blue]
>but here is my solution..
>http://www.physci.org/codes/charset.jsp[/color]

http://www.physci.org/codes/charset....8859-1&frame=1
Characters 127 to 159 in ISO-8859-1 (and all other ISO-8859 encodings)
are control characters. You seem to have some Windows-1252 characters
in there instead.

http://www.physci.org/codes/charset....8859-1&frame=2
There are only 256 characters in ISO-8859-1, so where did these come
from?

http://www.physci.org/codes/charset....8859-5&frame=1
Doesn't actually display any cyrillic characters. Mainly because
you've coded them as &#XXX; and numeric character references in HTML
always refer to unicode.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #3  
Old July 20th, 2005, 06:45 PM
Andreas Prilop
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

On Wed, 18 Feb 2004, Steve Pugh wrote:
[color=blue]
> http://www.physci.org/codes/charset....8859-1&frame=1
> Characters 127 to 159 in ISO-8859-1 (and all other ISO-8859 encodings)
> are control characters. You seem to have some Windows-1252 characters
> in there instead.[/color]

Blame your own browser!
[color=blue]
> http://www.physci.org/codes/charset....8859-1&frame=2
> There are only 256 characters in ISO-8859-1, so where did these come
> from?[/color]

The site is a bit confusing. Only "frame=..." is important for the
displayed characters. One and the same document is then sent with
different charset parameters. That should have no effect - but
actually browsers will take a different typeface for each charset
parameter.
[color=blue]
> http://www.physci.org/codes/charset....8859-5&frame=1
> Doesn't actually display any cyrillic characters.[/color]

<http://www.physci.org/codes/charset.jsp?cs=iso-8859-5&frame=5>

  #4  
Old July 20th, 2005, 06:45 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Andreas Prilop <nhtcapri@rrzn-user.uni-hannover.de> wrote:[color=blue]
>On Wed, 18 Feb 2004, Steve Pugh wrote:
>[color=green]
>> http://www.physci.org/codes/charset....8859-1&frame=1
>> Characters 127 to 159 in ISO-8859-1 (and all other ISO-8859 encodings)
>> are control characters. You seem to have some Windows-1252 characters
>> in there instead.[/color]
>
>Blame your own browser![/color]

Blame all my own browsers! Every browser I have incorrectly displays,
for example, ™ as a trademark sign. That's NN4, NN6, NN7, IE5,
IE5.5, IE6, Op5, Op6, Op7, Moz 1.6, Firefox 0.8 and even Lynx.

But the site is claiming that -
"SGML character 153. This is the character "?".
In HTML you would write it:
<p>This is the character "™".</p>"
<http://www.physci.org/codes/char.jsp?char=153>
which is just plain wrong.
[color=blue][color=green]
>> http://www.physci.org/codes/charset....8859-1&frame=2
>> There are only 256 characters in ISO-8859-1, so where did these come
>> from?[/color]
>
>The site is a bit confusing. Only "frame=..." is important for the
>displayed characters. One and the same document is then sent with
>different charset parameters. That should have no effect - but
>actually browsers will take a different typeface for each charset
>parameter.[/color]

It really is deeply misleading.
[color=blue][color=green]
>> http://www.physci.org/codes/charset....8859-5&frame=1
>> Doesn't actually display any cyrillic characters.[/color]
>
> <http://www.physci.org/codes/charset.jsp?cs=iso-8859-5&frame=5>[/color]

That is displaying unicode characters 0401-0500 (rather than the more
useful 0400-04FF).

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #5  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Steve Pugh wrote:[color=blue]
> Andreas Prilop <nhtcapri@rrzn-user.uni-hannover.de> wrote:[color=green]
>> On Wed, 18 Feb 2004, Steve Pugh wrote:
>>[color=darkred]
>>> http://www.physci.org/codes/charset....8859-1&frame=1
>>> Characters 127 to 159 in ISO-8859-1 (and all other ISO-8859
>>> encodings) are control characters. You seem to have some
>>> Windows-1252 characters in there instead.[/color]
>>
>> Blame your own browser![/color]
>
> Blame all my own browsers! Every browser I have incorrectly displays,
> for example, ™ as a trademark sign. That's NN4, NN6, NN7, IE5,
> IE5.5, IE6, Op5, Op6, Op7, Moz 1.6, Firefox 0.8 and even Lynx.
>
> But the site is claiming that -
> "SGML character 153. This is the character "?".[/color]

Not here. My UA's (IE6/Moz 1.3 on XP) shows
http://localhost:8080/codes/char.jsp?char=153
as a 'tm' character.
[color=blue]
> In HTML you would write it:
> <p>This is the character "™".</p>"
> <http://www.physci.org/codes/char.jsp?char=153>
> which is just plain wrong.
>[color=green][color=darkred]
>>> http://www.physci.org/codes/charset....8859-1&frame=2
>>> There are only 256 characters in ISO-8859-1, so where did these come
>>> from?[/color][/color][/color]

I got the impression that charset affected
the characters, that was not borne out by
my investigations, but I thought I would
leave it in there for the moment.
[color=blue][color=green]
>> The site is a bit confusing. Only "frame=..." is important for the
>> displayed characters. One and the same document is then sent with
>> different charset parameters. That should have no effect - but
>> actually browsers will take a different typeface for each charset
>> parameter.[/color][/color]

So I should remove all reference to charset?
[color=blue]
> It really is deeply misleading.
>[color=green][color=darkred]
>>> http://www.physci.org/codes/charset....8859-5&frame=1
>>> Doesn't actually display any cyrillic characters.[/color]
>>
>> <http://www.physci.org/codes/charset.jsp?cs=iso-8859-5&frame=5>[/color]
>
> That is displaying unicode characters 0401-0500 (rather than the more
> useful 0400-04FF).[/color]

....errr. That table is 16x16, ..or were you talking
hex there? I want to add the hex denomination
when I get a moment.

But on another note, I had a few questions
when I first posted, but the comments have
made me realise ..I have a lot of questions.

I'll cogitate the comments for a while before
I formulate my questions..

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #6  
Old July 20th, 2005, 06:45 PM
Karl Smith
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:
[color=blue]
> http://www.physci.org/codes/charset.jsp
>
> This page is my 'charset explorer', it displays
> character codes in a table 256 at a time.[/color]

Yeah, anyway. How do I save the applet with the periodic table? That's
my reason for loathing Flash and Java: when they are something
worthwhile it's always such a hassle to save.

Pack it all into 100+ nested tables, I say. Then use:

td table {
display: none
}
td:hover table {
display: table;
position: absolute;
z-index: 2;
}

- or something. Would be cool for one of those "this only works in
Opera" demo pages.
  #7  
Old July 20th, 2005, 06:45 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:
[color=blue]
>Steve Pugh wrote:[color=green]
>> Andreas Prilop <nhtcapri@rrzn-user.uni-hannover.de> wrote:[color=darkred]
>>> On Wed, 18 Feb 2004, Steve Pugh wrote:
>>>
>>>> http://www.physci.org/codes/charset....8859-1&frame=1
>>>> Characters 127 to 159 in ISO-8859-1 (and all other ISO-8859
>>>> encodings) are control characters. You seem to have some
>>>> Windows-1252 characters in there instead.
>>>
>>> Blame your own browser![/color]
>>
>> Blame all my own browsers! Every browser I have incorrectly displays,
>> for example, ™ as a trademark sign. That's NN4, NN6, NN7, IE5,
>> IE5.5, IE6, Op5, Op6, Op7, Moz 1.6, Firefox 0.8 and even Lynx.
>>
>> But the site is claiming that -
>> "SGML character 153. This is the character "?".[/color]
>
>Not here. My UA's (IE6/Moz 1.3 on XP) shows
>http://localhost:8080/codes/char.jsp?char=153
>as a 'tm' character.[/color]

It's just that TM characters aren't in acsii and hence couldn't be
transmitted in the news message. I should have edited the cut and
paste before sending.

That's what my browser shows as well, which is what's wrong.
™ is undefined in HTML and should not be used. It's a widespread
browser bug/feature to translate this into a Windows-1252 character.
The trademark character is actually ™
[color=blue][color=green][color=darkred]
>>>> http://www.physci.org/codes/charset....8859-1&frame=2
>>>> There are only 256 characters in ISO-8859-1, so where did these come
>>>> from?[/color][/color]
>
>I got the impression that charset affected the characters,[/color]

It does. But you didn't use any characters in your pages. You used
numeric character references, which in HTML are always references to
unicode.
[color=blue][color=green][color=darkred]
>>> The site is a bit confusing. Only "frame=..." is important for the
>>> displayed characters. One and the same document is then sent with
>>> different charset parameters. That should have no effect - but
>>> actually browsers will take a different typeface for each charset
>>> parameter.[/color][/color]
>
>So I should remove all reference to charset?[/color]

Probably best. Users already have the ability to change the character
set used to display the page via their browsers. As your tables don't
use anything that's character set dependent there's really no point in
including them.
[color=blue][color=green][color=darkred]
>>> <http://www.physci.org/codes/charset.jsp?cs=iso-8859-5&frame=5>[/color]
>>
>> That is displaying unicode characters 0401-0500 (rather than the more
>> useful 0400-04FF).[/color]
>
>...errr. That table is 16x16, ..or were you talking
>hex there?[/color]

Yes, wasn't the FF a clue? ;-)

The point I was making is that character sets are zero based, so by
counting 1 to 256 rather than 0 to 255, and so on for your higher
frames, you're doing it differently to every other reference.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #8  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Karl Smith wrote:
[color=blue]
> Yeah, anyway. How do I save the applet with the periodic table?[/color]

??? Bit of a change of subject!

Anyway, I had never bothered to set-up
the periodic table _applet_ as an easy install,
but you can get the application here..
http://www.physci.org/install/download.jsp

It's around 1 Meg, and includes 5
other programs (the page lies and
says 6 - but the browser was so
dodgy I removed it)

Over the next year I plan to break the
software suite up into individual
programs (on the basis that not many
people need a software suite with both
a text editor and ..periodic table)
[color=blue]
>...That's
> my reason for loathing Flash and Java: when they are something
> worthwhile it's always such a hassle to save.[/color]

Java now offers Java Web-Start.
It offers a painless install for the user
(except for the 'you might die' security
warning that comes up when installing).

On the upside, program updates are
automatic, on the downside, even
Java developers have trouble finding
where the .jar files are actually installed.
[color=blue]
> Pack it all into 100+ nested tables, I say. Then use:
>
> td table {
> display: none
> }
> td:hover table {
> display: table;
> position: absolute;
> z-index: 2;
> }
>
> - or something. Would be cool for one of those "this only works in
> Opera" demo pages.[/color]

;-)

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #9  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Steve Pugh wrote:[color=blue]
> "Andrew Thompson" wrote:[color=green]
>> Steve Pugh wrote:[color=darkred]
>>> Andreas Prilop <nhtcapri@rrzn-user.uni-hannover.de> wrote:[/color][/color][/color]
....[color=blue][color=green][color=darkred]
>>> That is displaying unicode characters 0401-0500 (rather than the
>>> more useful 0400-04FF).[/color]
>>
>> ...errr. That table is 16x16, ..or were you talking
>> hex there?[/color]
>
> Yes, wasn't the FF a clue? ;-)[/color]

Well shucks, I need *big* clues.
...about '4x2' should do.
[color=blue]
> The point I was making is that character sets are zero based, so by
> counting 1 to 256 rather than 0 to 255, and so on for your higher
> frames, you're doing it differently to every other reference.[/color]

I am starting a trend.
...OK, no, not really.
I'll adjust it next couple of days.


  #10  
Old July 20th, 2005, 06:45 PM
Karl Smith
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:
[color=blue]
> Karl Smith wrote:
>[color=green]
> > Yeah, anyway. How do I save the applet with the periodic table?[/color]
>
> ??? Bit of a change of subject!
>
> Anyway, I had never bothered to set-up
> the periodic table _applet_ as an easy install,
> but you can get the application here..
> http://www.physci.org/install/download.jsp[/color]

Not today. Java all crappy today. Can't get the page with the applet
to display, either.

So I've spent the last hour or so reviewing some available HTML
periodic tables and what a crappy bunch they are! The most appealing
(to look at) I've found so far is this:

http://www.dayah.com/periodic/

but it's a mess of JavaScript, font tags and rubbish underneath. And
I'm not certain the data is layed out correctly.

Shame 'bout the browser sniffing JavaScript that adds this admonition:
"Because of the complexity of this page, certain browsers may not
display it correctly. Your browser, Opera version 7.23, is
insufficient for viewing this page."
In IE6 it looks the same except for:
"Because of the complexity of this page, certain browsers may not
display it correctly. Your browser, Microsoft Internet Explorer
version 4.0, is sufficient for viewing this page."

Bugger that! I' gonna do my own pure CSS periodic table that ony works
in Opera.
Could you tell me what all those numbers mean and what the proper
layout for each element's data should be?
  #11  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Karl Smith wrote:[color=blue]
> "Andrew Thompson" <SeeMySites@www.invalid> wrote:[color=green]
>> Karl Smith wrote:
>>[color=darkred]
>>> Yeah, anyway. How do I save the applet with the periodic table?[/color][/color][/color]
....[color=blue][color=green]
>> Anyway, I had never bothered to set-up
>> the periodic table _applet_ as an easy install,
>> but you can get the application here..
>> http://www.physci.org/install/download.jsp[/color]
>
> Not today. Java all crappy today.[/color]

Are you extracting the urine, Karl?

I would have hoped for something more
informative from a person as familiar with
both usenet and web design as yourself!

In any case, on the assumpition you are not..
[color=blue]
>..Can't get the page with the applet
> to display, either.[/color]

The URL you (originally) posted was an
old version of the page, you might have
better luck with this one.
http://www.physci.org/applet/ptoe.jsp

You can find the Java version checker here.
http://www.physci.org/codes/jre.jsp

It should allow you to ascertain if you
have the Java necessary for the applet
(it uses 1.4) however I find this rather
perplexing as you have apparently seen
the applet before.
[color=blue]
> So I've spent the last hour or so reviewing some available HTML
> periodic tables and what a crappy bunch they are! The most appealing
> (to look at) I've found so far is this:[/color]

Thanks, no. I have two.
(both being further developed)

Oh, and I think I trimmed some of your
questions down there, but I am waiting
to be convinced that you are really
interested, rather than having a laugh. ;-)

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #12  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Steve Pugh wrote:[color=blue]
> "Andrew Thompson" wrote:[color=green]
>> Steve Pugh wrote:[/color][/color]
...[color=blue][color=green][color=darkred]
>>>>> http://www.physci.org/codes/charset....8859-1&frame=1
>>>>> Characters 127 to 159 in ISO-8859-1 (and all other ISO-8859[/color][/color][/color]
....[color=blue]
> It's just that TM characters aren't in acsii and hence couldn't be
> transmitted in the news message. I should have edited the cut and
> paste before sending.
>
> That's what my browser shows as well, which is what's wrong.
> ™ is undefined in HTML and should not be used. It's a widespread
> browser bug/feature to translate this into a Windows-1252 character.
> The trademark character is actually ™[/color]

I have made some changes to the page
in line with your comments.

I have yet to add any hexadecimal notation to
the main table, but have shown the hex equivalent
in the page for each character. (..hope I got the
conversion right!)

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #13  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Andrew Thompson wrote:
...[color=blue]
> I have yet to add any hexadecimal notation to
> the main table,[/color]

Still have not, but will not bother.

The drop-down list on that page
is now represented in hex for the
character range. Vis.
http://www.physci.org/codes/charset.jsp?frame=1

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #14  
Old July 20th, 2005, 06:45 PM
Andreas Prilop
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

On Wed, 18 Feb 2004, Andrew Thompson wrote:
[color=blue]
> So I should remove all reference to charset?[/color]

Yes, but you should send always "charset=UTF-8".
<http://ppewww.ph.gla.ac.uk/~flavell/charset/quick#cons>
<http://ppewww.ph.gla.ac.uk/~flavell/charset/checklist.html#s6>

And send the charset parameter as a "real" HTTP header,
not with the META thingy.
<http://ppewww.ph.gla.ac.uk/~flavell/charset/ns-burp.html>
<http://www.w3.org/International/O-HTTP-charset.html>

  #15  
Old July 20th, 2005, 06:45 PM
Andreas Prilop
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

On Wed, 18 Feb 2004, Andrew Thompson wrote:
[color=blue]
> I got the impression that charset affected the characters,[/color]

It _should not_ but it does in Netscape 4.80 and earlier versions.

The charset also affects the displayed _glyphs_ since browsers
usually take different typefaces for different charset parameters.

  #16  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Andreas Prilop wrote:
...[color=blue]
> And send the charset parameter as a "real" HTTP header,
> not with the META thingy.
> <http://ppewww.ph.gla.ac.uk/~flavell/charset/ns-burp.html>
> <http://www.w3.org/International/O-HTTP-charset.html>[/color]

...hmmm. It has me stumped.
I have added the lines..

AddType text/html;charset=UTF-8 jsp
AddCharset UTF-8 jsp
AddEncoding text/html jsp

to the .htaccess file in my public_html
directory under Apache 1.3.29, but I
still have to force the encoding to get it
to validate, is that what would be expected?
http://validator.w3.org/check?uri=ht...2Ftest%2Fmime%
2Findex.jsp&charset=utf-8+%28Unicode%2C+worldwide%29&doctype=HTML+4.01+Str ic
t&verbose=1

N.B. that link selects both encoding and
doctype, just select 'detect automatically'
for encoding to see what I mean..

The page is here..
http://www.physci.org/test/mime/

I wish I could get that stuff to work. :-(

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #17  
Old July 20th, 2005, 06:45 PM
Andreas Prilop
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:
[color=blue]
> I have added the lines..
>
> AddType text/html;charset=UTF-8 jsp
> AddCharset UTF-8 jsp[/color]

"AddCharset" is unnecessary when you have "AddType".
[color=blue]
> AddEncoding text/html jsp[/color]

Delete!
<http://httpd.apache.org/docs/mod/mod_mime.html#addencoding>
  #18  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Andreas Prilop wrote:[color=blue]
> "Andrew Thompson" <SeeMySites@www.invalid> wrote:
>[color=green]
>> I have added the lines..
>>
>> AddType text/html;charset=UTF-8 jsp
>> AddCharset UTF-8 jsp[/color]
>
> "AddCharset" is unnecessary when you have "AddType".
>[color=green]
>> AddEncoding text/html jsp[/color]
>
> Delete!
> <http://httpd.apache.org/docs/mod/mod_mime.html#addencoding>[/color]

Changed it to simply..
AddType text/html;charset=UTF-8 jsp
...deleted the other two. Same result.

*Finally* I have..
AddType "text/html; charset=UTF-8" jsp

Still no change. The validator still
does not like it unless I force the
encoding. :-(

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #19  
Old July 20th, 2005, 06:45 PM
Alan J. Flavell
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

On Thu, 19 Feb 2004, Andrew Thompson wrote:
[color=blue]
> AddType text/html;charset=UTF-8 jsp
> AddCharset UTF-8 jsp[/color]

Either of these should be workable for *static* content, if your
..htaccess is being read at all. However, "jsp" suggests that you are
generating this by a server-side process, no?
[color=blue]
> AddEncoding text/html jsp[/color]

This is definitely wrong. Sadly, the terms that were defined in the
MIME spec have become very confusing in relation to current
terminology. The "encoding" refers to possible techniques of encoding
the content, such as gzip for a means of compression. It has nothing
to do with the choice of a "character encoding".

The "character encoding" (as it's now known) is what the MIME
specification called "charset". Shame, but we just have to live with
that.

But let's get back to your server-side process. Most of them (CGI,
PHP, blah blah) have their own ways to influence the HTTP headers.

A quick Google for the terms jsp charset content-type

produces:

http://lists.w3.org/Archives/Public/...3Nov/0071.html

Is that of any relevance?

  #20  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Alan J. Flavell wrote:[color=blue]
> On Thu, 19 Feb 2004, Andrew Thompson wrote:
>[color=green]
>> AddType text/html;charset=UTF-8 jsp
>> AddCharset UTF-8 jsp[/color]
>
> Either of these should be workable for *static* content, if your
> .htaccess is being read at all. However, "jsp" suggests that you are
> generating this by a server-side process, no?[/color]

Sure am.
[color=blue]
> A quick Google for the terms jsp charset content-type
>
> produces:
>
> http://lists.w3.org/Archives/Public/...3Nov/0071.html
>
> Is that of any relevance?[/color]

(slaps forehead) Sure does.

I have hust set the content type using
the relevent jsp directive and all is sweet.

However. Since the statements indicated
to me that arbitrary file extensions could
get a mime type, I experimented with
documents that were _not_ .jsp*.

I came up with this.
http://www.physci.org/test/mime/mime.testfile

[* Just to prove to _myself_ that I could
get what people were telling me to
*actually* work. ..I had tried and
failed on several prior occasions! ]

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #21  
Old July 20th, 2005, 06:45 PM
Andreas Prilop
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:
[color=blue]
> I came up with this.
> http://www.physci.org/test/mime/mime.testfile[/color]

Last not least, you should fix your DOCTYPE.
<http://uk.htmlhelp.com/tools/validator/doctype.html>
<http://www.w3.org/QA/2002/04/valid-dtd-list.html>

--
Top-posting.
What's the most irritating thing on Usenet?
  #22  
Old July 20th, 2005, 06:45 PM
Michael Dayah
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Should've looked a little more carefully before damning it.

http://www.dayah.com/periodic/html4css.html

No font. No JavaScript. No rubbish. Enjoy.

Also, it was made before IE 6 came out, so I guess it is a shame about the
sniffing.

Warmly,
Michael Dayah


"Karl Smith" <google-2003-03@kjsmith.com> wrote in message
news:3d18d2.0402190107.5b2a4043@posting.google.com ...[color=blue]
>
> Not today. Java all crappy today. Can't get the page with the applet
> to display, either.
>
> So I've spent the last hour or so reviewing some available HTML
> periodic tables and what a crappy bunch they are! The most appealing
> (to look at) I've found so far is this:
>
> http://www.dayah.com/periodic/
>
> but it's a mess of JavaScript, font tags and rubbish underneath. And
> I'm not certain the data is layed out correctly.
>
> Shame 'bout the browser sniffing JavaScript that adds this admonition:
> "Because of the complexity of this page, certain browsers may not
> display it correctly. Your browser, Opera version 7.23, is
> insufficient for viewing this page."
> In IE6 it looks the same except for:
> "Because of the complexity of this page, certain browsers may not
> display it correctly. Your browser, Microsoft Internet Explorer
> version 4.0, is sufficient for viewing this page."
>
> Bugger that! I' gonna do my own pure CSS periodic table that ony works
> in Opera.
> Could you tell me what all those numbers mean and what the proper
> layout for each element's data should be?[/color]


  #23  
Old July 20th, 2005, 06:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

Michael Dayah wrote:[color=blue]
> Should've looked a little more carefully before damning it.
>
> http://www.dayah.com/periodic/html4css.html
>
> No font. No JavaScript. No rubbish. Enjoy.[/color]

Well, shucks!

If you were gonna resort to JS
for a periodic table, you could
have at least adjusted the tab
order to go by atomic number!

[ Nice table tho. ;-) ]

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #24  
Old July 20th, 2005, 06:46 PM
Karl Smith
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Michael Dayah" <michael@dayah.com> wrote:
[color=blue]
> Should've looked a little more carefully before damning it.
>
> http://www.dayah.com/periodic/html4css.html
>
> No font. No JavaScript. No rubbish. Enjoy.[/color]

So what does this bit do?

<a href="javascript:element('Cobalt')">Cobalt</a>

Element 110 has a name now, too. "DamnStadium" or something, named to
honour the Sydney Olympic games, no doubt.
  #25  
Old July 20th, 2005, 06:46 PM
Karl Smith
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:[color=blue]
> Karl Smith wrote:[color=green]
> > "Andrew Thompson" <SeeMySites@www.invalid> wrote:[color=darkred]
> >>
> >> Anyway, I had never bothered to set-up
> >> the periodic table _applet_ as an easy install,
> >> but you can get the application here..
> >> http://www.physci.org/install/download.jsp[/color]
> >
> > Not today. Java all crappy today.[/color]
>
> Are you extracting the urine, Karl?
>
> I would have hoped for something more
> informative from a person as familiar with
> both usenet and web design as yourself![/color]

Posting quickly. Had the horrible feeling the Blue Screen of Death was
coming. When I tried your download page it wouldn't work for me with
Opera, so I opened the page in MSIE. Then everything turned weird -
Opera and MSIE both trying to use Java simultaneously is apparently a
no-no. Had to reboot computer.

[color=blue][color=green]
> > ...some available HTML periodic tables...[/color]
>
> Thanks, no. I have two.
> (both being further developed)[/color]

You could further develop by changing the symbol on element 110 from
"Uun" to "Ds" :-)

[color=blue]
> Oh, and I think I trimmed some of your
> questions down there, but I am waiting
> to be convinced that you are really
> interested, rather than having a laugh. ;-)[/color]

Yeah, I'll start another thread with a more appropriate subject line,
perhaps. People might have the misapprehension there are comments on
your entity explorer here.
  #26  
Old July 20th, 2005, 06:46 PM
Karl Smith
Guest
 
Posts: n/a
Default Re: SGML Charset explorer..

"Andrew Thompson" <SeeMySites@www.invalid> wrote:[color=blue]
> Karl Smith wrote:[color=green]
> > "Andrew Thompson" <SeeMySites@www.invalid> wrote:[color=darkred]
> >>
> >> Anyway, I had never bothered to set-up
> >> the periodic table _applet_ as an easy install,
> >> but you can get the application here..
> >> http://www.physci.org/install/download.jsp[/color]
> >
> > Not today. Java all crappy today.[/color]
>
> Are you extracting the urine, Karl?
>
> I would have hoped for something more
> informative from a person as familiar with
> both usenet and web design as yourself![/color]

Posting quickly. Had the horrible feeling the Blue Screen of Death was
coming. When I tried your download page it wouldn't work for me with
Opera, so I opened the page in MSIE. Then everything turned weird -
Opera and MSIE both trying to use Java simultaneously is apparently a
no-no. Had to reboot computer.

[color=blue][color=green]
> > ...some available HTML periodic tables...[/color]
>
> Thanks, no. I have two.
> (both being further developed)[/color]

You could further develop by changing the symbol on element 110 from
"Uun" to "Ds" :-)

[color=blue]
> Oh, and I think I trimmed some of your
> questions down there, but I am waiting
> to be convinced that you are really
> interested, rather than having a laugh. ;-)[/color]

Yeah, I'll start another thread with a more appropriate subject line,
perhaps. People might have the misapprehension there are comments on
your entity explorer here.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles