Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4080617

API: String.trim() method not working for all Unicode characters with SPACE prop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.1.2, 1.1.4, 1.1.6
    • core-libs
    • x86, sparc
    • solaris_2.6, windows_95



      Name: tb29552 Date: 09/19/97


      The trim() method does not remove all types of "white spaces" ;it ignores all the non-ASCII
      spaces such as ideographic space (\u3000), em-space (\u2001), en-space (\u2000) etc.

      Basically all Unicode characters with the SPACE property should be removed by trim(). There
      are about 20 of them.

      This is an annoying problem when you deal with Asian text, or text comming from desktop
      publishing package where many different type of spaces are used.

      Thanks


      company - ILE , email - ###@###.###
      ======================================================================

            jjb Josh Bloch
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: