RE: [WSG] Back to basics!
Sorry Adam, I've been having list submission problems and have lost a few verbose responses, and even complete questions. Consequently all I've posted of late are short responses if any at all. I'll endeavour to improve replies in future. Regards Mike From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Adam Smith Sent: 12 July 2009 23:41 To: wsg@webstandardsgroup.org Subject: RE: [WSG] Back to basics! Mike, It's messages like this one which make it such a joy to be part of WSG. Impeccable information and the perfect answer with just one URL! On 7/10/2009 at 7:39 pm, Foskett, Mike mike.fosk...@uk.tesco.com wrote: http://websemantics.co.uk/resources/common_symbols/ Mike -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of designer Sent: 10 July 2009 10:08 To: wsg@webstandardsgroup.org Subject: [WSG] Back to basics! Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** This is a confidential email. Tesco may monitor and record all emails. The views expressed in this email are those of the sender and not Tesco. Tesco Stores Limited Company Number: 519500 Registered in England Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL VAT Registration Number: GB 220 4302 31 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** Network Ten Pty Ltd ABN 91 052 515 250 Network Ten Disclaimer This e-mail (including all attachments) is intended solely for the named addressee. If you receive it in error, please let us know by reply e-mail, delete it from your system and destroy the copies. This e-mail is also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. E-mails may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems. We give no warranties in relation to these matters. If you have any doubts about the authenticity of an e-mail purportedly sent by us, please contact us immediately. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: [WSG] Back to basics!
No, I was sincere - this is exactly what the web's about - short messages which give the complete response; we can often get into a protracted to and fro about the best way to do something - but your response was spot on - in the words of Dragnet We just deal with the facts ma'am On 7/13/2009 at 7:02 pm, Foskett, Mike mike.fosk...@uk.tesco.com wrote: Sorry Adam, I’ve been having list submission problems and have lost a few verbose responses, and even complete questions. Consequently all I’ve posted of late are short responses if any at all. I’ll endeavour to improve replies in future. Regards Mike From:li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Adam Smith Sent: 12 July 2009 23:41 To: wsg@webstandardsgroup.org Subject: RE: [WSG] Back to basics! Mike, It's messages like this one which make it such a joy to be part of WSG. Impeccable information and the perfect answer with just one URL! On 7/10/2009 at 7:39 pm, Foskett, Mike mike.fosk...@uk.tesco.com wrote: http://websemantics.co.uk/resources/common_symbols/ Mike -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of designer Sent: 10 July 2009 10:08 To: wsg@webstandardsgroup.org Subject: [WSG] Back to basics! Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** This is a confidential email. Tesco may monitor and record all emails. The views expressed in this email are those of the sender and not Tesco. Tesco Stores Limited Company Number: 519500 Registered in England Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL VAT Registration Number: GB 220 4302 31 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** Network Ten Pty Ltd ABN 91 052 515 250 Network Ten Disclaimer This e-mail (including all attachments) is intended solely for the named addressee. If you receive it in error, please let us know by reply e-mail, delete it from your system and destroy the copies. This e-mail is also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. E-mails may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems. We give no warranties in relation to these matters. If you have any doubts about the authenticity of an e-mail purportedly sent by us, please contact us immediately. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: RE: [WSG] Back to basics!
This is an automated message from g...@siworks.co.za. Good day, I will be attending a workshop on Monday 13th and Tuesday 14th and will not be in the office. I will try and get back to you via email in the evening, however if there is anything urgent please send me an SMS Thanks // Dankie // Siyabonga // Ndiyabulela // Gracias // Merci etc etc, Greg ShiersChief fulfiller of needsTel: +27 11 466 3872Cell: +27 83 640 2660Mail: g...@siworks.co.zaWeb: www.siworks.co.za - The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer - SI Works Internet may monitor outgoing and incoming e-mails and other telecommunications on its e-mail and telecommunications systems. - ***List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfmUnsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfmHelp: memberh...@webstandardsgroup.org***
Re: [WSG] Back to basics!
I just use a modified keyboard layout that allows me to directly type necessary punctuation directly form the keyboard. no messing around with entities or NCRs. Andrew designer wrote: Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** -- Andrew Cunningham Senior Manager, Research and Development Vicnet State Library of Victoria 328 Swanston Street Melbourne VIC 3000 Ph: +61-3-8664-7430 Fax: +61-3-9639-2175 Email: andr...@vicnet.net.au Alt email: lang.supp...@gmail.com http://home.vicnet.net.au/~andrewc/ http://www.openroad.net.au http://www.vicnet.net.au http://www.slv.vic.gov.au *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***begin:vcard fn:Andrew Cunningham n:Cunningham;Andrew org:State Library of Victoria;Vicnet adr:;;328 Swanston Street;Melbourne;VIC;3000;Australia email;internet:andr...@vicnet.net.au title:Senior Manager, Research and Development tel;work:+61-3-8664-7430 tel;fax:+61-3-9639-2175 tel;cell:0421-450-816 note;quoted-printable:Projects:=0D=0A= http://www.openroad.net.au/=0D=0A= http://www.mylanguage.gov.au/ x-mozilla-html:FALSE url:http://www.vicnet.net.au/ version:2.1 end:vcard
RE: [WSG] Back to basics!
Mike, It's messages like this one which make it such a joy to be part of WSG. Impeccable information and the perfect answer with just one URL! On 7/10/2009 at 7:39 pm, Foskett, Mike mike.fosk...@uk.tesco.com wrote: http://websemantics.co.uk/resources/common_symbols/ Mike -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of designer Sent: 10 July 2009 10:08 To: wsg@webstandardsgroup.org Subject: [WSG] Back to basics! Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** This is a confidential email. Tesco may monitor and record all emails. The views expressed in this email are those of the sender and not Tesco. Tesco Stores Limited Company Number: 519500 Registered in England Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL VAT Registration Number: GB 220 4302 31 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** Network Ten Pty Ltd ABN 91 052 515 250 Network Ten Disclaimer. This e-mail (including all attachments) is intended solely for the named addressee. If you receive it in error, please let us know by reply e-mail, delete it from your system and destroy the copies. This e-mail is also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. E-mails may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems. We give no warranties in relation to these matters. If you have any doubts about the authenticity of an e-mail purportedly sent by us, please contact us immediately. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics! [SEC=UNCLASSIFIED]
[snip] Yes! Using UTF-8 in your web pages means NOT having to use HTML entities for text such as #241; or ecirc;. The only HTML entities you need to use in your character data are amp; for '' ampersand, lt; fo r '' less-than, and gt; for '' greater-than so that those characters don't confuse the HTML parser. If you’re using a CMS, XML and/or some other sort of phasing exercise care with character coding and declarations. I’ve seen some bugs with special characters not displaying properly in the final HTML. After much poking around it turned out to be a CMS spitting out UTF and a phaser expecting ISO characters. Obvious stuff but can be a real pain to diagnose. Andrew You can claim your Medicare rebate at the doctor's. Ask if they offer Medicare electronic claiming next time you visit. __ NOTICE - This message is intended only for the use of the addressee named above and may contain privileged and confidential information. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action based upon it. If you received this message in error please notify Medicare Australia immediately. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Medicare Australia. Please consider the environment before printing this e-mail *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics!
Hi all, I like http://leftlogic.com/lounge/articles/entity-lookup/ for any entities that I can't remember, and if you're on a Mac there's a widget, and a plugin for Firefox cheers Luke 2009/7/10 designer desig...@gwelanmor-internet.co.uk Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics!
Hi Paul, - Original Message - From: Paul Novitski p...@juniperwebcraft.com To: wsg@webstandardsgroup.org Sent: Friday, July 10, 2009 6:23 PM Subject: RE: [WSG] Back to basics! [snip] Yes! Using UTF-8 in your web pages means NOT having to use HTML entities for text such as #241; or ecirc;. The only HTML entities you need to use in your character data are amp; for '' ampersand, lt; for '' less-than, and gt; for '' greater-than so that those characters don't confuse the HTML parser. So you are really saying that typing I have got £100 to spare is OK, instead of: #8220;I have got pound;100 to spare#8221; (just as an example, of course). Really? Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics!
At 7/11/2009 04:44 AM, designer wrote: So you are really saying that typing I have got �100 to spare is OK, instead of: #8220;I have got pound;100 to spare#8221; Absolutely. As an example, look at the HTML source for this page: http://laurietobyedison.com/WOJwords_HanashiroIkuko.asp Scroll down past the nav menu and you'll see both Roman and Japanese text. There are HTML entities in the pages of this site that have survived from an earlier iteration, but none of the quotes and dashes need to be escaped with UTF-8. Just try it -- it will be a revelation. Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics!
So you are really saying that typing I have got £100 to spare is OK, instead of: #8220;I have got pound;100 to spare#8221; (just as an example, of course). Really? Yes, really. HTML as SGML application has so called document character set, which is UCS (Universal Character Set,ISO10646). You can think of it as a huge (tens of thousands) list of characters where each character is identified by an integer number, so called code point. This list is identical to that of Unicode so if you pick any character in Unicode and then look up the character with the same code poin in UCS they will be identical. Document character set should not be confused with your html file encoding, which for historical reasons is specified using charset attribute. Basically encoding tells how to convert bytes in your document into characters. Let's say your have a byte with numerical value 200 (C8 in hex) in your document. If your document has encoding ISO885-5 that maps into cyrillic letter Ш. If your document's encoding is ISO5589-13 that will be the letter Č. Browsers are supposed to map known encodings to document character set, where Ш is code point 1064 (0x0428) and Č is code point 268 (0x010C). Let's suppose that for some reason you want to have Ш in your ISO8859-13 encoded document. You cannot type it in directly, because this character is not in your specified character set. Character entities to rescue—they let you specify character from *HTML document character set, UCS*. This is important and some mistakenly think that character entities map to the current encoding (I think some old browsers did indeed do that, but that's a bug). So #200; won't give you Č in ISO8859-13 and won't give you Ш in ISO8859-5: in both cases you will get character which has code point 200 in unicode/ucs—È. So that's where character entities are useful—you can display UCS characters which are not available in your charset. If you are using unicode encoding there is not need for that, just type the character. For more info see: http://www.w3.org/International/questions/qa-what-is-encoding http://www.w3.org/TR/html401/charset.html Regards, Rimantas -- http://rimantas.com/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics!
On Jul 11, 2009, at 7:37 AM, Paul Novitski wrote: At 7/11/2009 04:44 AM, designer wrote: So you are really saying that typing I have got £100 to spare is OK, instead of: #8220;I have got pound;100 to spare#8221; Absolutely. I have recently started building WordPress sites, found WP auto converts them to html entities, I don't see a way to overwrite it. It also adds p tag and br tag after label tag when it sees a form attribute, and it got the closing tag wrong. I found all these dictatorial behavior very disturbing given the popularity of WordPress. Someone a WP diehard lover told me WordPress doesn't dictate how I should do with my markup, and that I can overwrite them with a few loops in function.php file. But html markup is the most basic of a webpage, I shouldn't need to write a few php line to tell a CMS system to do something fundamentally basic. I guess it's a so-called benevolent dictatorship. tee tee *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics!
quot; and #8220; are not the same. quot; is #34; On Fri, Jul 10, 2009 at 13:08, designerdesig...@gwelanmor-internet.co.uk wrote: Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** -- Алексей *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: [WSG] Back to basics!
http://websemantics.co.uk/resources/common_symbols/ Mike -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of designer Sent: 10 July 2009 10:08 To: wsg@webstandardsgroup.org Subject: [WSG] Back to basics! Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** This is a confidential email. Tesco may monitor and record all emails. The views expressed in this email are those of the sender and not Tesco. Tesco Stores Limited Company Number: 519500 Registered in England Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8 9SL VAT Registration Number: GB 220 4302 31 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: [WSG] Back to basics!
One of the main points of using Unicode is that you don't need to use entities, other than for a handful of chars used by HTML. I always keep a good reference handy, so that I can copy and paste straight into my files, the one I use is: http://www.calcresult.com/reference/text/unicode-reference.html But there are plenty of others, though not many are as comprehensive as that one. Regards, Mike -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of designer Sent: 10 July 2009 10:08 To: wsg@webstandardsgroup.org Subject: [WSG] Back to basics! Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Any help, links etc most welcome. (I have googled, but . . .) Thanks, Bob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Back to basics!
designer wrote: Hi all, Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? Neither. quot; will give you a straight quote (which you don't want). #8220; is hard to read when you are editing your source (and takes up 7 bytes). Just use “, it *is* in UTF-8 after all. -- David Dorward http://dorward.me.uk/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: [WSG] Back to basics!
Could anyone tell me where there is information regarding character code 'usage' that is simple. I always use UTF-8 and, e.g., if I want to put a left quote in my text I can use quot; or #8220; Which is recommended? ... One of the main points of using Unicode is that you don't need to use entities, other than for a handful of chars used by HTML. Yes! Using UTF-8 in your web pages means NOT having to use HTML entities for text such as #241; or ecirc;. The only HTML entities you need to use in your character data are amp; for '' ampersand, lt; for '' less-than, and gt; for '' greater-than so that those characters don't confuse the HTML parser. To get you started, two basic rules are: 1) Save your HTML/PHP files with UTF-8 character encoding. In many text editors there's a character encoding option in the Save As dialog. 2) Declare UTF-8 as the character encoding in the HTML header, e.g.: meta http-equiv=Content-Type content=text/html; charset=utf-8 / (XHTML has different character set declarations than HTML.) For more details see Richard Ishida's W3C Internationalization pages at http://www.w3.org/International/ Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] back to basics
The voices are telling me that [EMAIL PROTECTED] said on 5/18/2004 8:43 PM: So, yes, apos; is a better solution than the one I posted. Except that [censored] MSIE doesn't display the apostrophe. It gets it fine (as slapping ?xml version='1.0'? onto the top and renaming it to foo.xml demonstrates), but when it comes to displaying it, it can't be bothered. I toad you I'd subtract from the sum of human knowledge. Back to lurk. -- Rev. Bob Bob Crispen bob at crispen dot org Ex Cathedra Weblog: http://blog.crispen.org/ Some people just don't know how to drive... I call these people Everybody But Me * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
Re: [WSG] back to basics
The voices are telling me that James Ellis said on 5/18/2004 6:06 AM: I have a feeling apos; won't work in IE for Windows. I've used #039; everywhere with success. Right you are. You can tell how often I fire MSIE up on this box. Slap an XML header on it, rename it foo.xml, and MSIE renders it like a charm. Boy, Microsoft sure pays attention to them DTDs, don't they? :-( -- Rev. Bob Bob Crispen bob at crispen dot org Ex Cathedra Weblog: http://blog.crispen.org/ Some people just don't know how to drive... I call these people Everybody But Me * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
RE: [WSG] back to basics
Naughty, Bob, you just stuck it into quirks mode. I presume you mean the xml prelude? Mike Pepper Accessible (but happy cuz the Mrs let him off the leash tonight) Web Developer www.seowebsitepromotion.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rev. Bob 'Bob' Crispen Sent: 18 May 2004 23:13 To: [EMAIL PROTECTED] Subject: Re: [WSG] back to basics The voices are telling me that James Ellis said on 5/18/2004 6:06 AM: I have a feeling apos; won't work in IE for Windows. I've used #039; everywhere with success. Right you are. You can tell how often I fire MSIE up on this box. Slap an XML header on it, rename it foo.xml, and MSIE renders it like a charm. Boy, Microsoft sure pays attention to them DTDs, don't they? :-( -- Rev. Bob Bob Crispen bob at crispen dot org Ex Cathedra Weblog: http://blog.crispen.org/ Some people just don't know how to drive... I call these people Everybody But Me * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help * * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
Re: [WSG] back to basics
Excuse me for possibly subtracting from the sum of human knowledge, but I don't recall reading in the original problem statement that it had to be a *semantic* single quote, which means the entity apos; would do just fine. My apologies, I presumed that Justin had already checked the existing XHTML entities and couldnt find one. You are correct that apos; is available in XHHTML and is defined as character 39... though only when you are using ISO Latin character sets. So, yes, apos; is a better solution than the one I posted. Perhaps somebody can tell me whether or not it's an urban legend (for once the Microsoft XML documentation is obscure) that putting on an XML header automatically gets you apos; regardless of DTD? Using ?xml version='1.0'? only gets you 3 entities... lt; gt; and amp; All extra entities must be declared in a DTD but the XHTML DTD declares alot of them so using a XHTML DTD gets you all the entities you should need... inlcuding apos; woric * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
Re: [WSG] back to basics
Justin French wrote: My first reaction (after years of PHP scripting) was to escape it with a slash: input type='text' name='surname' value='O\'Riley' / -- doesn't work. Adding to this - try htmlspecialchars() in PHP with ENT_QUOTES set - this will special character all the XML reserved entities for you. For storage in a data store this is more preferable as you don't have to worry about escaping quotes in SQL statements etc. Pushing into PHP land a bit further, you can strstr() the input value to ensure you don't double special the ampersand if that's already been added e.g ending up with amp;#039; . HTH James * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
Re: [WSG] back to basics
I can't find a way of escaping a single quote inside the attribute, The simple answer seems to be use double quotes for all attributes, so that at least the nested double quotes can be replaced with a quot; entity, but I can't believe this is my only option -- am I missing something?? Hi Justin, You can either: a) use the appropriate type of quote (single or double) for each attribute and not to religously stick to one or the other. b ) declare an entity in an inline DTD declaration at the top of the document to signify a single quote. eg: ?xml version=1.0? !DOCTYPE html [ !ENTITY sq #039; ] You can now refer to single quotes as sq; woric * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *
Re: [WSG] back to basics
The voices are telling me that [EMAIL PROTECTED] said on 5/17/2004 8:26 PM: I can't find a way of escaping a single quote inside the attribute, ... b ) declare an entity in an inline DTD declaration at the top of the document to signify a single quote. eg: ?xml version=1.0? !DOCTYPE html [ !ENTITY sq #039; ] Excuse me for possibly subtracting from the sum of human knowledge, but I don't recall reading in the original problem statement that it had to be a *semantic* single quote, which means the entity apos; would do just fine. The DTDs for XHTML at the W3C refer to http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent which includes apos; Perhaps somebody can tell me whether or not it's an urban legend (for once the Microsoft XML documentation is obscure) that putting on an XML header automatically gets you apos; regardless of DTD? -- Rev. Bob Bob Crispen bob at crispen dot org Ex Cathedra Weblog: http://blog.crispen.org/ Some people just don't know how to drive... I call these people Everybody But Me * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help *