Forum OpenACS Q&A: Re: Problems with Microsoft char set (eg 'smart quotes') in form input

Sorry for bumping but this may be of help to someone else. I had a problem with the apostrophe pasted from MS Word and converted it as follows:
set microsoft_apostrophe \u2019
regsub -all $microsoft_apostrophe $letter "'" letter

Ideally this should be replaced with the html entity 8217 but that doesn't play well with HTMLarea so instead I just used the standard apostrophe but here's the code to convert to the HTML entity
set apostrophe "\’"
set microsoft_apostrophe \u2019
regsub -all $microsoft_apostrophe $letter $apostrophe letter

Brian