Reading Single Quote Character from Microsoft Word

Hi,
I do a cut and paste from Microsoft Word into a JTextPane. I am trying to catch the "curly quote" and use the following code.
current = /* text of JTextPane)
for (i = 0; i < current.length(); i++) {
Character cx = new Character(current.charAt(i));
if (cx == '\222')
return true;
Now, nothing gets returned even though \222 is in the document.
When I do a
System.out.println (current)
It prints
\222When I do a
if (current.charAt(0) == '\222')
False is returned....
Is there something I am misssing???
Thanks

Print out Integer.toOctalString(of all the chars). You should see 222 there somewhere. If you don't, the characters is not \222.

Similar Messages

  • Printing to a PDF from Microsoft Word

    I need to print to a PDF from Microsoft Word. Is there any way to do so in order to have the hyperlinks in the Word document show up and work in the PDF?

    Finally found an answer. The secret is to NOT use the Print function at all, but click the Acrobat Tab in MS Word, then select Preferences and make sure the Links option is ticked, then Click Create PDF. The hyperlinks transfer that way, but not through using Print/Acrobat.

  • Live links in PDFs generated from Microsoft Word 2008?

    A couple of years ago, I was informed that my live links (bookmarks, indexmarks, etc.) in documents generated by Microsoft Word 2004 for the Macintosh did not become PDF live links in Acrobat Standard 7 because the Mac version from Microsoft Word 2004 didn't use the necessary hooks (
    i "APIs"
    or something like that) even though the Windows version did.
    Now that MS Word/MS Office 2008 for the Mac is coming out, will we be able to generate PDFs with such live links.
    Any input will be most appreciated.
    Acrobat Standard 7.0.9. Tiger 10.4.11. Dual bootable, DP MDD 1.25GHz G4 (2004), maxed out at 2GB of RAM, both Spotlight and Dashboard disabled, Photoshop primary scratch disk on dedicated 160GB internal drive, at least 100GB available on each of the four internal drives, up to 300GB on some. Counting external FW drives just over 1TB of drive space available. nVidia GeForce 7800 GS 425MHz 256 MB graphics display card. Processor napping enabled through CHUD 3.5.2.

    While this does not answer the problem of live links. (You can create them Manually, they just are not generated direct from Office Mac).
    The answer to the other question of the little annoying PDFMaker Menu (that never really worked correctly for me (took 5 minutes just to generate a 108K PDF).
    Because MicroSoft took out VBA Support on Mac side That rendered the PDFMaker menu useless because it uses VBA to work.
    So what they have done in Word 2008 is actually put it as Translator choice on the save menu. They now directly can save Word Files directly as PDF files. once you have created your file and saved it. Then go again to *Save As....* , when menu open scroll mouse down until you run across the choice PDF. select that and save. not only is it easier a 108K document can be saved in about 15 seconds or less not the old 5 minutes going through PDFMaker.
    One of PDFMaker's failings was that each step of conversion it called up Distiller which first created a .PS file. Then it checked the file. Then created the PDF file. Then checked the file again before actually writing the PDF File. Then only after checking the written PDF, would it delete the invisible PS file. Finally the PDF file was created. Naturally with all the check steps if you have a very large file could take ages.
    With word's new feature (2008) you can generate a PDF at blinding speeds.

  • Why do Certain fonts change when I convert to PDF from Microsoft word?  They start out 60s chic and end up as a standard font.

    Why do some fonts change when converted from Microsoft word to PDF?  It starts out as 60s chic and changes to standard font.

    Related to the question, I suspect you have licensed fonts that cannot be embedded. Thus, the PDF is using what it is finding to be an equivalent as well as it can guess. Did you check the font list in the PDF?

  • Try print from Microsoft Word XP : printer (HP Oficejet 4500 G510n-z) lops off top of random lines

    try print from Microsoft Word XP: printer (HP Officejet 4500 G510n-z) lops off top of random lines

    CD didn't work. Download software, didn't work when it came to plugging into usb port, don't even get a BACK button, nothing. Printer not recognized by laptop. Did all the solutions/uninstall/install etc. Printer is working though, prints out the exact same thing each time I press the green button on the printer, but is not connected to laptop. So it's not the printer, it works.
    Now what?

  • Printing from Microsoft Word

    When I print my documents from Microsoft Word, they will never print with color.  Is there a place where I can change from printing only black and white to printing color as well?

    dumb question - are you trying to print a black and white document in color - sorry had to ask.....
    if you've changed your black and white document to color, try to save it first then try printing it.
    it should print in color if you can do a test page in color....
    ok - try this one - last resort....click on word - preferences - print and select - print background colors and images.

  • Pasting text that was copied from microsoft word 2008

    In dreamweaver CS3, if I want to paste text that I have
    copied from Microsoft Word 2008, i have to paste it in entourage,
    copy that and THEN I can paste in dreamweaver. I can't paste
    directly in Dreamweaver from word. is there an extension that will
    cut out this extra step?
    Thanks much,
    Page

    I just copied two paragraphs of text from Word 2008, and
    pasted it into DW's
    Design view. No tables.
    What is it you are copying?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "micdim1" <[email protected]> wrote in
    message
    news:glaf2g$m11$[email protected]..
    > DW CS3 does not work with Word 2008. Problems with
    pasting.
    >
    > Adobe says that DW CS4 works with Word 2008, however
    when I have pasted
    > from
    > Word 2008 into DW CS4, the text gets inserted into a
    Table. This happens
    > with
    > all options except for "Text Only" option.
    >
    > The work around for DW CS4 is to either open up a Word
    document with
    > TextEdit
    > and copy/paste from there, or paste the Word text into
    DW, copy the text
    > again
    > from DW (which is inside a table now), delete the table
    with the text, and
    > then
    > paste the text again.
    >
    > If anyone knows of another solution please let us know.
    >
    >
    >
    >
    >

  • Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Why not? Are there error messages? Where are the files located? Why are you deleting MicroSoft Word files?

  • Hi I am doing a photo course unable to paste from microsoft word, publisher to the course how do I do this

    Question
    Hi I am doing a photo course unable to paste from microsoft word, publisher to the course how do I do this

    Please Update to the latest Firefox 15.0.x version.
    *Help > About Firefox
    *https://support.mozilla.org/kb/update-firefox-latest-version
    The Firefox Firefox/6.0.2 that you currently run is no longer supported with security updates.
    *Mozilla/5.0 (Windows NT 6.0; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 version
    See also:
    *http://kb.mozillazine.org/Clipboard_not_working
    Try to use the keyboard if the buttons on the web page aren't working.
    * Copy: Ctrl+C or Ctrl+Insert
    * Paste: Ctrl+V or Shift+Insert
    * Cut: Ctrl+X or Shift+Delete
    *http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
    *https://addons.mozilla.org/firefox/addon/allowclipboard-helper/

  • Making non-standard size pdfs from Microsoft Word 2003 on pc

    I have Acrobat 8 Professional (pc, Windows XP op system), and want to know how to make a pdf from Microsoft Word (2003) where the dimensions of my document remain as they are, a non-standard size, such as 5.5" x 8.5". All the choices of "paper size" are standard only, and if I check "Custom" and type in the non-standard dimensions, it doesn't work. In other programs, such as InDesign, I can make a pdf of any document size I want with no problems. Does anyone know how to make this work for Word on pc?

    You can create a custom page size for Acrobat.
    In Word:
    File > Print (choose AdobePDF) > Properties.
    On the Adobe PDF Document Properties tab, choose Add next to Adobe PDF Page Size.
    Type in a name for your new custom page size and type in your dimensions.
    Click Add/Modify to close that window, then select your newly created paper size from the drop down.
    Click Ok to close that window
    Click OK to print
    For future printing, you would not have to redefine the page, just choose it from the dropdown.

  • Will doc files transferred from Microsoft word work in pages

    Will be transferring doc files from Microsoft Word to new iMac, can Pages read them. Do I have to import them one at a time into Pages or when opening a particular doc file, will Pages automatically read it and let me revise document

    marian73 wrote:
    Please clarify if you are saying that before i can edit the original document in Pages to begin with,  I have to do some sort of "export" to Word format.
    You can open the Word document and edit it, and when you have finished editing the document, you need to export it to Word format. By doing this, you should be OK.

  • Why won't my officejet 4500 wireless print from microsoft word or excel?

    My new officejet 4500 wireless printer will not print from microsoft word or excel.  The paper goes through the printer but there is nothing printed on it.

    Hello.
    It seems like the black cartridge could be running out of ink. Since most of what is commonly printed from MS word and excel might be black text, this is the first reason I can figure out why your printer is not printing only from these applications.
    Check this document to see if your printer is performing good and to check if ink is coming out from all of the cartridges.
    Cheers.
    Wixma.
    I am an HP employee.
    Say thanks by clicking the Kudos star in the post.
    If my reply resolved your problem, please mark it as as Accepted Solution so that it can be found easier by other people.

  • Can I quote a single quote character so that I can use it in Replace()

    Hi. How can I quote a single quote character so that I can use it in the Replace() function below. I'm attempting to query first_name records that contain a '.
    select first_name, last_name
    from ttms.prospect
    where instr(first_name,"'") > 0
    ERROR at line 3:
    ORA-00904: "'": invalid identifier

    Hi,
    String literals are enclosed in single-quotes (not double-quotes).
    To use a single-quote within a string literal, use two of them:
    WHERE   INSTR (first_name, '''') > 0In Oacle 10 (and up) you can also use Q-Notation:
    WHERE   INSTR (first_name, q'[']') > 0but you may find this more confusing for short literals containing only one single-quote.
    Edited by: Frank Kulash on Mar 11, 2009 4:52 PM

  • Printing to PDF from Microsoft Word 2004?

    Greetings,
    I'm in the process of completing my masters thesis and am in need of some assistance. The guidelines for my thesis state that title pages must have a 2-inch top margin and 1-inch bottom margin. When I print to paper from Microsoft Word, everything looks great. When I print to PDF from MS Word, the 2-inch top margin changes to 2 & 3/16-inch and the bottom margin cahnges from 1-inch to 1 & 3/8 inch. Is there a reason why this is happening and is there a way to correct this? I don't want to have to go out and purchase Abobe Acrobat Pro just to print this thesis according to the graduate school guidelines.
    Sincerely,
    JBelair

    Hi rememdy111,
    Please see this post: Print to Pdf, where I've answered your question.
    Please don't hesitate to ask if you have additional questions.
    Best,
    Sara

  • How to ceate pdf from Microsoft Word that contain TOC.

    I just bought Adobe Acrobat Pro for Mac.
    But I can not create a pdf with TOC from microsoft word. Both word 2011 & word 2016 preview doesn't work.
    All through the print process, no chance to set pdf property.
    I do know windows is ok. but mac doesn't work.

    Thank you very much.
    According to the compatible application table. Acrobat XI (October 2012) doesn't support any version of mac office!!!
    Why adobe sell such a product to customer???
    Acrobat 6 (April 2003)
    Acrobat 7 (January 2005)
    Acrobat 8 (November 2006)
    Acrobat 9 (July 2008)
    Acrobat X (November 2010)
    Acrobat XI (October 2012)
    Mac Office
    Office X



    x
    x
    x
    Office 2004
    N/A


    x
    x
    x
    Office 2008
    x
    x
    x
    x
    x
    x
    Office 2011
    x
    x
    x
    x
    x

Maybe you are looking for

  • How to show 'No Records Found' and 'Employee Name Unknown' in oracle report

    Hello, I'm using 6i and building a report to show employees who have incorrectly input their time. I have an input parameter so a user can select a specific employee by emp_id or can leave it empty to show all. That part works. I also have date param

  • Text Variable with Replacement Path

    Hi, I want to create a report which will show me 5 years of data. I have used a variable for Fiscal year which will be given by the user. Now I created a 5 key figures with offset to show the 5 years of data.  I used a text variable with replacement

  • Cumulative Sum in Pl/Sql query

    Hi, If my column has 10, 20, 30 ,40, 50. I want to select the rows that make the combination to 100. Please let me know if you need more details.

  • About tooltips in java swing

    Hi friens, I am writing a 2D graph swing program for displatying graphs on the browsers. I am drawing graphs directly on the main content pane with out adding any controls. I want to show a tool tip with the value of X, Y coordinates when user places

  • Spry Image Slideshow w/Filmstrip - Eliminating space around SS images?

    Hello, I can not locate the file/setting to eliminate all the space around the Slideshow images?  In Design/Code view, the SS appears nicely positioned in the table, however when I publish the page, I've got a ton of wasted space below the SS? How do