Results 1 to 1 of 1
  1. #1
    mac's Avatar
    mac is offline Member
    Join Date
    Dec 2009
    St. Petersburg, Russia
    Rep Power

    Default unicode as part of string

    Good evening.

    While looking at a String, i would like to somehow guarantee that is does or does not contain a unicode character. Does Java let us natively solve this task?

    Please let me know how


    PS: Let me add 1 item of clarification. Assume, i am literally looking at "Hello\u1001world" String. Say, if i pass it to a method that will break it down char by char and will test if its decimal value is < 128 .. well that won't work, since split will take \ and u and 1 and 1 etc literally. I support i can use if String.matches("blah"), but wonder if there is a more elegant way to do it
    Last edited by mac; 01-28-2010 at 03:45 AM.

Similar Threads

  1. search with part of string
    By virendra in forum Lucene
    Replies: 1
    Last Post: 01-21-2010, 01:56 PM
  2. Unicode string serach problem
    By saurabh01 in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2009, 11:22 AM
  3. String/sentence to unicode convertion
    By sandeepvreddy in forum New To Java
    Replies: 5
    Last Post: 11-20-2008, 04:33 PM
  4. How to Draw Unicode String in Java
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-24-2008, 12:15 AM
  5. How to get part of a String?
    By eva in forum New To Java
    Replies: 1
    Last Post: 12-23-2007, 07:58 AM

Posting Permissions

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