Microsoft KB Archive/938958

= All character strings in the database are HTML-encoded after you install Content Management Server 2002 Service Pack 2 =

Article ID: 938958

Article Last Modified on 6/27/2007

-

APPLIES TO


 * Microsoft Content Management Server 2002 Service Pack 2

-



SYMPTOMS
After you install Microsoft Content Management Server 2002 Service Pack 2 (SP2), all character strings in the database are HTML-encoded.



CAUSE
This behavior occurs because Content Management Server 2002 SP2 implements the HTML 4.01 specification. In the HTML 4.01 specification, character strings in a database or in an HTML source are converted to HTML-encoded strings.



STATUS
This behavior is by design.



MORE INFORMATION
Character strings can still exist in the database without being HTML-encoded. To do this, customize the placeholder that you use in the Content Management Server 2002 project. The following is the sample code. namespace CmsPlaceholderLibrary {       [SupportedPlaceholderDefinitionType(typeof(HtmlPlaceholderDefinition))] ///        /// Description of JpnPlaceholderControl summary ///        public class JpnPlaceholderControl : HtmlPlaceholderControl {               public JpnPlaceholderControl {                       //                         // TODO:add constractor logic here                        // }               protected override void OnPopulatingDefaultContent(PlaceholderControlCancelEventArgs e)                { // TODO:add JpnPlaceholderControl.OnPopulatingDefaultContent // base.OnPopulatingDefaultContent (e); base.Html = &quot;type text here&quot;; }               protected override void SavePlaceholderContent(PlaceholderControlSaveEventArgs e)                { // TODO:add JpnPlaceholderControl.SavePlaceholderContent // base.SavePlaceholderContent (e); EnsureChildControls; ((HtmlPlaceholder)this.BoundPlaceholder).Html = HttpUtility.HtmlDecode( base.Html ); }       } }

Keywords: kbexpertiseadvanced kbexpertiseinter kbbug kbtshoot KB938958

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.