At 13:31 -0500 1/30/08, Ward Clark wrote: >A colleague emailed some JavaScript code. When I copied this code and pasted >it into a BBEdit window, the first character of one line changed from a space >to an ASCII 202. > >I thought at first that the bad character was in the email message. >However, when I copied and pasted that character into the MacASCII Display >utility <http://www.synergycreations.com/freeware.html#ascii>, it display as >a SPACE. > >I displayed the email message as raw source. Here's the problematic line: > ><p class=3DMsoNormal><span style=3D'font-size:11.0pt;font- family:"Calibri",= >"sans-serif"; >color:black'> var conversion_value =3D 0.75;<o:p></o:p></span>= ></p>
What you're seeing is an example of just why HTML email ought to be banned. Non-breaking spaces are just the beginning of your problems unless you arrange with your correspondent to turn of formatted email. Some email clients are now making that difficult - think Apples Mail.app - but it can be done. In this case I doubt very much that was put there by the coder. It's likely an artifact that came from a "helpful" email client. Eudora has a command-option-t feature that can be used to extract text from HTML format and it would likely do what you're looking for but it simply can't be perfect in a world in which email clients continue to become more helpful at the sending end. -- --> From the U S of A, the only socialist country that refuses to admit it. <-- -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
