Cut and paste, keeping just the ASCII characters

I'm working through an iBook technical manual with code.  Each time I copy a snippet of code and paste it into XCode, the pasted text is interlaced with \u200b.
For example...
I copy "return 0;" from the book.  In XCode, it shows up as "r<200b>e<200b>t<200b>u<200b>r<200b>n<200b> <200b>0<200b>;<200b>"
(Eh, not totally true.  /u200b is apparently non-printable and hence not noticeable in XCode.  Nontheless, these letters screw up the lexer.  I pasted into vi to get get the unicode representation.)
Anyway, is there a quick an easy way to strip these characters?  I already know the sed, awk, tr, etc solutions.  Not a good workflow.  I definitely want something with a gui.
Thanks in advance.

Thanks for the reply.  No luck with the option key.  But yeah, I think you're right, it's the book.  Copying and pasting code samples introduce the unicode characters.  Any other text pastes fine. 
Not sure if this is a bug or not.  Something tells me it'll get buried in DRM issues sooner than it'll get fixed. 

Similar Messages

  • I just cut and pasted photos from the phone into my HP and now I can't open the files in the computer.

    I just cut and pasted photos from my Iphone into my HP.
    NOw when I go and try to open the files from the computer it's giving me an error:
    INVALID IMAGE
    The file format is not supported or is invalid
    WHat's confusing is that all files copy into my computer are already JPG. I have not changed anything, simply cut photos from my phone and copy them in my computer.
    I need help !!! I have a lot of my baby photos and videos that I really want to recover.
    PLEASE !
    thank you

    Try using a photo import utility or application for this instead of doing it the archaic manual way. Even Windoze includes a scanner and camera wizard that can be used for this.

  • I can't seem to cut and paste text into the community message form?

    It seems I can't paste text data into this field.  Can you help?

    Win 7, explorer.  Cut and paste from any text source (Word, Notepad, Explorer) has the same result.  As an example, In this form window I cannot paste.  But, If I open a new discussion, toggle the HTML button, I can paste.  .  For some reason the reply form does not have the HTML button.  So, it might be a Java/browser thing - something is disabled.....
    I'll try Chrome and see if the same thing happens.
    I can cobble around it, but I've never seen this in any other HTML form before...

  • Cannot cut and paste covers into the Get Info

    After upgrading to iTunes 10.4 I can no longer cut and paste album cover artwork into the Get Info wondoe for either songs or albums. It worked perfectly before this.

    Hi Patys,
    I have already posted the solution twice and you can read it by scrolling up in this topic!

  • Can't cut and paste lyrics into the "lyrics" tab in "Get Info."

    I have the latest version of iTunes for Mac, but today I tried to cut and paste the lyrics to a song into the lyrics tab and it refuses to paste. I don't even get an option to paste. Nothing happens when I right click to paste. The cursor is blinking but no paste. It's shut off. I can copy the lyrics off the internet site fine, but when I go into the File>Get Info>Lyrics Tab, can't paste anything. Anybody experience this problem?

    Hi Patys,
    I have already posted the solution twice and you can read it by scrolling up in this topic!

  • Cut and Paste keeping original reference

    Is there a way to cut a number of formula based cells and paste them to a different location on a table and have the formulas keep their old references (right now my formulas are keeping their same relative positional references and having useless outputs [Because of blank or incorrect data reference])? I'm aware I could rewrite them using "$" to force them to keep the same reference but I was wondering if there was any other way (to avoid having to type a million "$"). I tried doing this in Google Spreadsheets and it seemed to keep the correct reference without any additional fuss, so I'm hoping Numbers as some functionality like this that I'm not finding.

    Hi stpippin,
    I am not sure what you are trying to do. Numbers works best with several small tables, each with a purpose. Rather than copying formulas to another part of a table, you can create another table with a new purpose.
    Table 1 contains values (typed in, pasted in, or calculated from elsewhere):
    Fruit
    Value
    Apple
    99
    Banana
    98
    Cherry
    97
    Date
    96
    Eugenia
    95
    Fig
    94
    Grape
    93
    Table 2
    Fruit
    Value
    Apple
    99
    Banana
    98
    Cherry
    97
    Date
    96
    Eugenia
    95
    Fig
    94
    Grape
    93
    A2 contains this formula (and Fill Down and Right)
    =Table 1::A2
    Select cells A2 to B8 and copy. Then paste into Table 3:
    Fruit
    Value
    Apple
    99
    Banana
    98
    Cherry
    97
    Date
    96
    Eugenia
    95
    Fig
    94
    Grape
    93
    Formula in Table 3::A2 becomes
    =Table 1::A2
    Now you have another table that duplicates Table 2. What do you want to do with it?
    Regards,
    Ian.

  • ITunes folder will not delete. When I moved my iTunes folder from my old computer to new, I placed the iTunes folder temporarily in my Dropbox folder so I could cut and paste it into the new computer's music folder. Now I can't delete that folder.

    iTunes will not update my podcasts. When I click refresh, I get the circling arrows but after an hour it hasn't updated the available podcasts on those I'm subscribed to. I don't know if this is related to the issue I'm having with iTunes store and Besecure, guessing it may be. All the workarounds I've seen on these communities for fixing the Bsecure and iTunes issue are far too complicated for me, a computer simpleton. Any help would be greatly appreciated!

    Yes, provided all the media is inside the iTunes Media folder, which is in turn inside the main iTunes folder (which is the standard arrangement) you should be able to move the iTunes folder from <User's Music> to any other path and shift-start-Tunes (option-start-iTunes on a Mac) to reconnect to it.
    If the media folder has split out to another drive in the past, or media is stored outside of the iTunes Media folder, then things get a bit more complicated. I can go into details should it be necessary.
    tt2

  • The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?

    I have recently switched from a PC to a MacBook Pro.
    I have a large number of documents and photographs on a multiterrabite external drive, backed up on a second multiterrabite external drive.
    Both external drives are formatted for MacIntosh. This has been verified by agents at an Apple store and also at Best Buy in two different cities.
    This is the problem:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    Thanks!
    Roderick Guerry
    [email protected]

    Roderick Guerry wrote:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    No, this is a philosophical difference between Apple and Microsoft. Apple believes that it's dangerous to cut a file in case the user never pastes it; in that case the file is lost. Microsoft seems to not have this problem (if I remember Windows correctly) because they don't delete the originating file if it's cut but never pasted.
    Even though Macs have a lot of keyboard shortcuts, philosophically Macs have traditionally been mouse-first. This applies to file copy operations. In your case, what a Mac user would do is open the source window, open the destination window (on your second drive), and then Command-drag the selected files from the source to destination window. This is because a normal drag would leave the originals behind, while adding the Command modifier key tells OS X that this is a Move, not a Copy, so don't leave the originals behind.
    (In addition there are different rules for drag-copying within the same volume or between different volumes. If you drag between two folders on the same volume, the files are moved. If you drag between different volumes, the files are copied unless you hold down Command to delete the copies on the source volume.)
    Roderick Guerry wrote:
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    Two problems in this case. First, batch file renaming is not built into OS X unless you build something with Automator. However, there are many utilities that can do batch file renaming which you can find at macupdate.com or on the App Store. Since I work with media I often batch rename using one of the media managers I have lying around like Media Pro or Adobe Bridge (comes with Photoshop).
    iPhoto is a database front end designed to shield the file system from the consumer and let them concentrate on creativity and sharing. As such it is often a poor choice for managing files directly. When you "transferred the photographs" chances are you moved the originals, not the ones iPhoto edited which are stored in a hidden folder.
    Roderick Guerry wrote:
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    There will not be a way to do it exactly like Windows. As described above, there are ways to do it "the Mac way." If it is possible to remove judgment on which way is "better" you might find the Mac way to be acceptable, but of course sometimes we simply prefer what we're used to.

  • How to cut and paste long Word document into text generator?

    I have a very long list of attributions in a Word document.
    When I cut and paste it into the "Sample Text" area, it goes in fine.
    But when I try to look at it ... either as simple text or, preferred, scrolling ... I only get parts of the document.
    I can correct it by adding a 'return' in the middle of every few words.
    But my document is so long, it would take a long time to do that one by one.
    Solutions sought: How to just import the whole document and have it scroll, zip-zip?!

    Thank you DH and skalaki, I had not known of the Boris title generator. Funny, I had looked in the FCE online manual until 'titling' and editing text ... didn't see mention of that.
    In any case ... I've now found it and trust I'll be able to figure it out.
    Since skalaki was first with the answer, I awarded the 'solved' there. DH's comments were further helpful.

  • CUT AND PASTE PHOTOS

    Is there any way to cut and paste photos within a folder (like on a PC) without downloading a program? I'm talking about changing the order of the photos.Drag and drop is a pain and takes too long if you have an extreme amount of pics. Also, copy and paste is just an extra step. Tx!

    When you trying to arrange 500 downloaded photos in the order that you want them it is not the same time drag then it is to cut and paste.
    Maybe you should look at why you are trying to manually arrange 500 photos in a specific order, which sounds like exactly the type of tedious task computers are designed to avoid....
    Various options:
    if you want the best photos to show up first, you can rate them. It's easier to hit apple-3 to add three stars than to hit apple-x and apple-v to cut and paste. Then you can tell iPhoto to sort by rating, top to bottom. And the rating can be used for other purposes as well.
    Or, iPhoto will automatically sort them by time and date--if the time and date are wrong, then better to use iPhoto tools to fix that once and for all, than to manually rearrange.
    So--what are these 500 photos and exactly why are you trying to re-arrange them? What order do you want to browse them in? Cut-and-paste is just a tool to get to your ultimate goal--maybe if you describe that ultimate goal, someone here can provide a better path than manually re-ordering.

  • Bug With iTunes 6 cut and paste?

    I've just installed iTunes 6, when I try to cut and paste lyrics into the lyrics box, it doubles the paste (it does it twice). I'm not having this problem in any other app, and I've rebooted, and it is still happening. Very very very annoying. Has anyone else had this problem. Is there a work around? I've replicated the problem on my G5 desktop.

    Yes, but that was posted before 6.0.1, and they didn't fix it in 6.0.1...
    He did not say it would be in the next update (6.0.1) which cam out very quickly, but that it would be fixed in a future update. At least you know they are aware of the problem and are working on it.

  • Why am I having trouble cutting and pasting shape animation keyframes?

    Thank you for taking a look at my little problem...
    I am creating a shape animation - a simple box that "dances". I create eight keyframes with control point changes. After the eighth keyframe I want to begin with the first again, by cutting an pasting the keyframes I've already created. When I try to paste one or more keyframes after the eighth keyframe, the pasted keyframe(s) produce unintended results. Point one seems to reset to 0,0 - and the others do not reflect the pasted keyframe either.
    Is there something I am missing about cutting and pasting keyframes in the shape animation parameter?
    Thanks

    Thanks Zoom - This will probably be the solution for me. Unfortunately there is some underlying problem going on. I can't get the "repeat" option by clicking and holding on the keyframe, but I can get it in the right column of the keyframe editor. But when I select repeat it doesn't change anything. I even selected "generate keyframes" - nothing. However, the program did slow down as though I had done something, and the "undo repeat" option was available in the edit menu. So the program thinks it did something. I'll keep poking around...

  • Why can't i cut and paste

    Downloaded the new Mountain Lion and now I can't cut and paste. Tried the keyboard shortcuts and the drop down menu with no luck. Also can't accomplish this from right clicking. Any ideas?

    Hi elg07,
    Welcome to the Safari Discussions Forum. It's interesting you should mention that.
    I did a quick 'drop-down' of the Edit menu, and those facilities are greyed out, but as soon as I highlighted the subject matter of your post, lo and behold, the cut & paste facilities appeared in black, so it is possible to copy & paste, provided you run the cursor over the item or passage you wish to copy (mine highlights in yellow), you should be able to copy and paste.
    Hope this helps.

  • I am trying to manage my website, why can't I cut and paste information or even url?

    I have only had this imac for 24 hours, it doesnt seem to have basic functions like cut and past even using the commands control c and V.  I run 2 websites and its completely frustrating, can anyone help please... otherwise its going back...

    See these:
    Switching from Windows to Mac OS X,
    Mac Basics—Tutorials on using a Mac,
    Mac OS X keyboard shortcuts,
    Apple How-To Guides for Mac OS X,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual, Mavericks Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac

  • Cut and paste from Safari to Word doc please Help!!!!!

    I am trying to take a map from the internet via either Mapquest or Rand Mcnally maps and put it in a Word document, and I cannot figure out how to do it. I have tried to highlight the map and cut and paste it in the document but this is not working, if anyone out there knows how to perform this function, please let me know as soon as possible.
    Thanks
    Chris Knop

    Hi knopper, Welcome to Apple's Users Help Users Forums.
    This should work. :~)
    1] cmd shift 4 brings up a cross hair.
    2] drag cross hair across the map and release.
    3] see the png file, maybe jpg, on your desktop or where you have system store new things.
    4] open to make sure its what you want.
    5] copy it into word.
    If that works, I like Green or Gold stars. See Apple info on the email alerts.
    Thanks, Joyous Computing, JP

Maybe you are looking for