Microsoft Word Smart Quotes to Straight Quotes RRS feed

  • Question

  • User-2089907823 posted

    When the user Copy-Pastes content from Microsoft Word some of the characters like curly quotes turn into ? on the browser & in our confirmation email.

    I was able to find how to resolve this issue for the browser by using jQuery.

    But for email I cannot use JavaScript.

    I tried this ASP.net / C# code but it hasn't worked for me.

    if (sConfirmationText.IndexOf('\u201b') > -1) sConfirmationText = sConfirmationText.Replace('\u201b', '\'');
    if (sConfirmationText.IndexOf('\u201c') > -1) sConfirmationText = sConfirmationText.Replace('\u201c', '\"');
    if (sConfirmationText.IndexOf('\u201d') > -1) sConfirmationText = sConfirmationText.Replace('\u201d', '\"');
    if (sConfirmationText.IndexOf('\u201e') > -1) sConfirmationText = sConfirmationText.Replace('\u201e', '\"');

    I would appreciate any help in resolution?


    Thursday, June 23, 2011 2:30 PM