Characters changing after publishing

  • Unknown's avatar

    Hello

    I’m writing a computer programming blog. When I’m writing the blog everything is ok, but when I publish or preview it some characters change. This change in characters will cause the code not to work again if someone copy pastes it back into the editor.

    For example, please take a look at this link:
    http://software-solutions-online.com/2014/03/15/vba-modify-existing-text-file/

    This is the first code you will see on that page:

    Sub Example1()
    Open “D:TempTest.txt” For Output As #1
    Print #1, “Changes to First Line of Text File”
    Close #1
    End Sub

    If you take a look at the double quotes, they are like this:
    ““
    while the original double quote used when writing the blog was this
    “”

    If the readers of my blog copy paste that code back into the VBA editor, they will get a syntax error.
    How can I prevent the ASCII characters from changing after publishing articles??

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,

    Currently, it doesn’t look like you’re using the code attribute shown here:

    Code Attribute

    Can you give that a try and let me know if it prevents the disruption of the code you’re entering?

  • The topic ‘Characters changing after publishing’ is closed to new replies.