Results 1 to 3 of 3
  1. #1
    Tim McDaniel is offline Member
    Join Date
    Feb 2009
    Posts
    2
    Rep Power
    0

    Default Searching for Microsoft special characters

    My apologies if I get this wrong: I know almost nothing about Eclipse and I'm new to this forum. At least I did try Web searches to answer my questions, but I haven't gotten anywhere.

    Microsoft Word, and some other Microsoft products, translate input into Microsoft-only characters: curly quotation marks, ellipses (...), en-dash, em-dash, and a few others. These characters are, in octal, between 0200 and 0237 inclusive == 0x80 to 0x9f. These characters are not portable to Linux. Due to copy-and-paste, a few of these characters have gotten into Java source files.

    I would like to tell some developers how to locate and change them in Eclipse. Unfortunately, I haven't been successful. An on-line Eclipse page (the forum software won't allow me to include the URL) indicates that a regular expression search should work. I got a developer to search a directory for the regular expression [\0200-\0237], and then just \0226, but got no hits, even though I know that one file has character octal 226 in it. And this is under Search, to search a set of files. In the version of Eclipse there (a year old or so), I saw no way to search using Find, in the current file, for a regular expression.

    Any ideas for how I might proceed? (Including responses of "it should have worked, so you did something wrong -- make sure 'regular expression' is selected".)

    --
    Tim McDaniel, tmcd@panix.com

  2. #2
    Tim McDaniel is offline Member
    Join Date
    Feb 2009
    Posts
    2
    Rep Power
    0

    Default

    After tracking down a little more info, it seems that part of the problem is that Eclipse 3.3.2 does not have a regular expression checkbox on the Find window, where Eclipse 3.4.0 does. I blush if that's all it is. As for Search not working in 3.3.2: it does seem to work in 3.4.

  3. #3
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    8

    Default

    Thank you for googling first. I'm glad you found the regex checkbox, but I'm surprised you couldn't find it in 3.3. It's been around forever. At the same time, Eclipse takes some getting used to. In addition, regex support in all products is inconsistent. Sometimes, you have to try variations of the same approach to find one that works with a particular editor. However, I have found the Eclipse editor to be be about the most robust when it comes to regex. It follows the "Java" flavor, if that helps...

Similar Threads

  1. encoding special characers in jsp
    By nanimtech in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-06-2008, 02:22 PM
  2. special characters
    By ravian in forum New To Java
    Replies: 2
    Last Post: 11-16-2007, 02:28 PM
  3. Replies: 1
    Last Post: 08-07-2007, 06:32 AM
  4. show special symbol using its Unicode character
    By christina in forum AWT / Swing
    Replies: 1
    Last Post: 07-25-2007, 10:21 AM
  5. Special characters in text fields
    By Felissa in forum Web Frameworks
    Replies: 0
    Last Post: 06-27-2007, 05:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •