Two Laptop Bag
The moose likes Java in General and the fly likes non-printable special characters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "non-printable special characters" Watch "non-printable special characters" New topic
Author

non-printable special characters

akhter wahab
Ranch Hand

Joined: Mar 02, 2009
Posts: 151

i am writing excel file using jxl library but there are non-printable special characters in the text how can i remove that thanks in advance


Start Earning Online||Start Earning Using Java
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32712
    
    4
Sounds like a job for a regular expression.
akhter wahab
Ranch Hand

Joined: Mar 02, 2009
Posts: 151

Campbell Ritchie wrote:Sounds like a job for a regular expression.


i already found two regex but don't know what exactly they are doing here are the both regex


can you please elaborate these regex
Regards
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3056
    
    1

The first one replaces all non-printable characters with the empty string. The second one replaces all control characters (not necessarily every non-printable character) with the empty string.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: non-printable special characters
 
Similar Threads
Strange behaviour in char expression inside switch
Does varchar allow non-printable characters
what is default value for char array?
Remove bad characters from strings
How to create a new method for an existing object?