*
The moose likes Linux / UNIX and the fly likes Jave File write in Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Jave File write in Unix" Watch "Jave File write in Unix" New topic
Author

Jave File write in Unix

Rashid Akhter
Greenhorn

Joined: Jun 24, 2011
Posts: 1

Hi ,

I am working on htmlparser which contains some empty tag with whitespace like

<span some attributes> </span> ,

when I am trying to write this string to a file in unix sytem it is replacing white space with ? like <span some attributes>?</span>.

Please suggest if unix takes white space as a special character and how to get rid of '?' .

Thanks,





Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

Please provide us with your code.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Rashid Akhter,

Can you please be more specific?

Unix/Linux treat some characters as special in file names and directory names, but not as characters within a file. Which are you concerned about?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jave File write in Unix
 
Similar Threads
Need help for Shell Script to reduce a file
XSLT
Simple question
Preserving whitespaces in attribute value during XSLT
Problem with MultipartrequestWrapper