Smart Quotes and other problematic characters
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Smart Quotes and other problematic characters




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Smart Quotes and other problematic characters  
Mike


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-05 10:55 PM

I am looking for a good way to programmatically convert smart quotes and
other non ISO characters to characters that are ISO compliant. I am thinking
of writing a find and replace routine that gets called on the save event for
html placeholders. I would like to do this globally instead of updating each
template individually. Please let me know how I might be able to do this.

A collection that will give me all the place holders on a page with out
having to recurse the collections tree would help a lot and make the whole
thing more efficient.

Thanks,
Mike






[ Post a follow-up to this message ]



    Re: Smart Quotes and other problematic characters  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-05 10:55 PM

Hi Mike,

there are two possible ways to implement this:

1) in a workflow event. Here you are able to do the action for all
placeholders globally. I would suggest to do it in the
CmsPosting_PlaceholderPropertyChanging event handler.

2) in the SavePlaceholderContent method of a custom placeholder control.
Here you could ensure that the action is only rolled out for content entered
in this specific placeholder control (if you would like to have some
granularity on this)

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"Mike" <Mike@discussions.microsoft.com> wrote in message
news:9032F447-5859-40E9-BF9A-3B74EE7FF482@microsoft.com...
>I am looking for a good way to programmatically convert smart quotes and
> other non ISO characters to characters that are ISO compliant. I am
> thinking
> of writing a find and replace routine that gets called on the save event
> for
> html placeholders. I would like to do this globally instead of updating
> each
> template individually. Please let me know how I might be able to do this.
>
> A collection that will give me all the place holders on a page with out
> having to recurse the collections tree would help a lot and make the whole
> thing more efficient.
>
> Thanks,
> Mike
>







[ Post a follow-up to this message ]



    Re: Smart Quotes and other problematic characters  
Mike


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-05 10:55 PM

Thanks!

"Stefan [MSFT]" wrote:

> Hi Mike,
>
> there are two possible ways to implement this:
>
> 1) in a workflow event. Here you are able to do the action for all
> placeholders globally. I would suggest to do it in the
> CmsPosting_PlaceholderPropertyChanging event handler.
>
> 2) in the SavePlaceholderContent method of a custom placeholder control.
> Here you could ensure that the action is only rolled out for content enter
ed
> in this specific placeholder control (if you would like to have some
> granularity on this)
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44[/url...nyurl.com/8ugwj
> ----------------------
>
>
> "Mike" <Mike@discussions.microsoft.com> wrote in message
> news:9032F447-5859-40E9-BF9A-3B74EE7FF482@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: Smart Quotes and other problematic characters  
Mike


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-05 10:55 PM

It turns out it is easier to switch the character encoding on the pages to
UTF-8 see http://www.geocities.com/stmetanat/smartquotes.htm. However, the
info about the work task events will be very useful.

Mike

"Mike" wrote:
[vbcol=seagreen]
> Thanks!
>
> "Stefan [MSFT]" wrote:
> 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:39 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register