aspose file tools*
The moose likes Beginning Java and the fly likes can't able to retrive the string from url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

can't able to retrive the string from url

pradipta kumar rout
Ranch Hand

Joined: Sep 13, 2010
Posts: 43
Sir,
I am using the URL class created a connection and want to read the content of the connection and want to store in the a file,
but I am not able to find the result it is encoded in some format as follow]

I have used following



I have surprised when saw the result in the contents.txt as follow

<meta name="keywords" content="वीडियो, निश�ल�क, सामान�य, खोजें, ढूंढें, तलाशें, देखें, ज�ड़ें, शेयर करें, शेयर करना, अपलोड करें, मनोरंजन">


instead of
<meta name="keywords" content="worst, twist, twists, endings, ever, 6th, sixth, sense, signs, village, M., Night, Shyamalan, smosh, anthony, padilla, ian, hecox, pit, WHY, ARE, YOU, READIN...">



Like above other contents are also encrypted I am not able to find any solution to get the right content to my file...

why this happening sir can you give any suggestion sir


Kindly give me any suggestion sir

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36578
    
  16
Closing as a duplicate of this question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't able to retrive the string from url
 
Similar Threads
cant get the string from url
ArrayList to file
Set an encoding scheme for InputStreamReader and ByteArrayOutputScream !!!
searching a string a specific character sequence
can't able to write the actual format on a file