FYI,

The smart quotes are not limited to Mac only.

There's a useful reference page about them and other high ascii 
characters here:

http://www.cs.tut.fi/%7Ejkorpela/www/windows-chars.html#list

For the project I'm working on at the minute I have customized jTidy to 
take care of these and emit the correct HTML entity codes in the 
generated HTML.

By default jTidy replaces the high ascii values with HTML entities, but 
the resulting output fails XHTML strict validation. I don't remember off 
the top of my head exactly what jTidy outputs, but the entities on the 
page linked above pass the validation test.

Spike

[EMAIL PROTECTED] wrote:
> Does this follow for MS Word Smart quotes also?
> 
> sas
> 
> Scott A. Stewart, 
> Web Application Developer
>  
> Engineering Consulting Services, Ltd. (ECS)
> 14026 Thunderbolt Place, Suite 100
> Chantilly, VA 20151
> Phone: (703) 471-8400
> Fax: (703) 834-5527
> 
> 
> -----Original Message-----
> From: Matthew Small [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 14, 2005 09:51 am
> To: CF-Talk
> Subject: RE: Capturing Mac's SmartQuotes
> 
> Hi Talk,
> 
> I figured out that the smart quotes have a very high ASCII code.  Here's
> what I did to remove them:
> 
> function RemoveSmartQuotes (st) {
>       st = replace(st, chr(8220), chr(34), "all");
>       st = replace(st, chr(8221), chr(34), "all");
>       st = replace(st, chr(8216), chr(39), "all");
>       st = replace(st, chr(8217), chr(39), "all");
>       
>       return st;
> }
> 
> 
> I thought you'd like to know.
> 
> - Matt Small
> 
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194552
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to