WordPress.org

Ready to get started?Download WordPress

Forums

post as simple text .. (7 posts)

  1. rleon
    Member
    Posted 2 years ago #

    I have a blog and I have lines that I have copy pasted that have " in them.

    For example:
    echo “selclass qualifier memory;info;wait;infolog” | cstm

    When I copy paste the line from the blog to a terminal session I get this:

    echo ^Óselclass qualifier memory;info;wait;infolog^Ô | cstm

    As you see the " is turned into a ^Ô

    Then if I have
    awk ‘{ print length(), $0 | “sort -n” }’

    This is what it will paste as
    awk { print length(), $0 | sort -n^T }^R

    Is there a way to fix this?

  2. bioshox
    Member
    Posted 2 years ago #

    Paste your content into the HTML tag on the WYSIWYG, it's due to malformed, missing or unsupported character encoding from the WYSIWYG when you paste the formatted data into WordPress.

  3. rleon
    Member
    Posted 2 years ago #

    thanks for the prompt response.

    I tried and that didn't help

    I am trying this on the latest post on:

    http://www.unixtips.net/

    Should I maybe put html tags around it?

  4. rleon
    Member
    Posted 2 years ago #

    thanks for the prompt response.

    I tried and that didn't help

    I am trying this on the latest post on:

    http://www.unixtips.net/

    Should I maybe put html tags around it?

    I also forgot to mention that even if I type it manually I get the same results.

  5. bioshox
    Member
    Posted 2 years ago #

    It seems fine on my machine, I'm running a MacBook Pro, what OS and browser are you rocking?

  6. rleon
    Member
    Posted 2 years ago #

    Ok ..

    so .. after some testing .. using the lastest post

    awk '{ print length(), $0 | "sort -n" }'

    Using firefox,IE or Crome

    They work fine if I post from the website to a text file:
    awk '{ print length(), $0 | "sort -n" }'

    If I past from the website to a terminal window .. i get
    awk { print length(), $0 | sort -n^T }^R

    If I past from the website to a text file to a terminal window . same thing.
    awk { print length(), $0 | sort -n^T }^R

    If I past from the original text file to the terminal window no issues:
    awk '{ print length(), $0 | "sort -n" }'

    So it seems that wordpress maybe changing the characters some where?

  7. rleon
    Member
    Posted 2 years ago #

    Finally if I post from this post .. to the terminal it also works fine:
    awk '{ print length(), $0 | "sort -n" }'

    [ Please do not bump, that's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.