[HTML]

5 Oct 2005 04:41 pm
karohemd: by LJ user gothindulgence (Default)
[personal profile] karohemd
I don't seem to be able to find an entitiy for the percent symbol. Is there one?

Date: 5/10/05 03:43 pm (UTC)
From: [identity profile] jasontheknight.livejournal.com
% will give you %

Date: 5/10/05 03:54 pm (UTC)
From: [identity profile] karohemd.livejournal.com
Hm, I was expecting something along the lines of &perc; as your suggestion is using the ANSI/ASCII code (which wouldn't be cross-platform compatible which is the point in using entities in the first place).
I already search w3.org but even their extensive list doesn't have one.

Date: 5/10/05 03:56 pm (UTC)
From: [identity profile] jasontheknight.livejournal.com
ASCII code, rendered as Unicode by most browsers these days.

I've never seen an entity for % - it's one of those characters that should just work whatever encoding is being used. Why do you need it?

Date: 5/10/05 03:58 pm (UTC)
From: [identity profile] karohemd.livejournal.com
OK, cool.
I was just wondering because every other symbol etc. in the file I'm currently translating is replaced by an appropriate entity.

Date: 5/10/05 04:48 pm (UTC)
chrisvenus: (Default)
From: [personal profile] chrisvenus
I think in pretty much 100% of charactersets using the latin alphabet and possibly all those beyond the first 127 characters are always the standard ascii. The reason a lot of things (like a euro symbol) have a entity code is because they lie outside of that 127 character range and so become characterset dependant. Using entity references gets around that problem.

Standard quotes and amphersand signs require entity references because they have special meaning in HTML/XML but you should be able to use any ascii characters apart form that as are and anything outside fo that gets a entity.

http://www.lookuptables.com/ shows the ascii characters in tabular form. Of note is that the first 32 are non-printable characters (well, things like line feeds could be considered printable in some way). As [livejournal.com profile] blankinfinity said in brief you can refer to ascii characters because you can refer to any character by number as he did and so you get your %. You could do that with letters and numbers and other stuff as well if you wanted.

Date: 5/10/05 04:54 pm (UTC)
From: [identity profile] karohemd.livejournal.com
*nods*
Yeah, the low ASCII number should have given it away.

Date: 5/10/05 04:57 pm (UTC)
chrisvenus: (Default)
From: [personal profile] chrisvenus
Not to most people, it wouldn't. :)

I never know how technical people are (and I see so many varied techy questions that I forget who asked them and who has how much tech knowledge) so figure that I'll give them the full tech geeky whack which is too much for most on the assumption that people can ignore it. I'll be impressed that you both understood and cared about my explanation. :)

Date: 5/10/05 04:28 pm (UTC)
From: [identity profile] mazzarc.livejournal.com
www.w3schools.com

Date: 5/10/05 04:39 pm (UTC)
From: [identity profile] karohemd.livejournal.com
Guess where I looked first. They've got one for permille but not for percent.

June 2025

M T W T F S S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 12 Feb 2026 03:38 pm
Powered by Dreamwidth Studios