• Hello,
    When I published an article with special apostrophes, it doesn’t publish them.

    For example, say in the content area I type:

    My name is john, and I am good in that. You′re welcome!

    WordPress only publishes upto My name is john, and I am good in that. You and ignores rest of the body.

    What’s the reasons behind this?

    Thank You.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rooseveltrp

    (@rooseveltrp)

    Any help guys?

    WordPress automatically converts apostrophes to special apostrophes. Its not necessary for you to manually insert them.

    Thread Starter rooseveltrp

    (@rooseveltrp)

    Hi,
    I am sorry but I don’t understand what you are trying to say.

    my issue is,

    if I publish an article with apostrophe:

    My name is john, and I am good in that. You′re welcome!

    In the database it only stores up to

    My name is john, and I am good in that. You

    And rest of the body is completely ignored.

    What I am saying is just insert a REGULAR apostrophe not a special apostrophe. WordPress auto-displays regular apostrophes as special apostrophes with no extra help needed from you.

    The reason it is being ignored in the database is that the characters need to be escaped before they are written into the database. WP does this automatically. That character has a special meaning in MySQL and so it throws the database for a loop when it encounters the char in the database without a backslash in front of it ( adding the backslash is called escaping the character) – WP and PHP add the backslashes automatically if you let them work as they are designed to work.

    When you want to use characters like special apostrophes in HTML you do not insert the character itself but can use what is called an HTML character entity
    https://www.utexas.edu/learn/html/spchar.html

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Publish articles with special charachters’ is closed to new replies.