Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to read the text below?

00417000000000169000450000100080000000200200000800500380002800700230006601400340
00890160019001230250025001420260006001670370005001730440018001780440029001960480
02200225#†‰€ˆ‡‰#îõ‘þüŠ ꑯõù ‚†ƒ -#ª÷‘þü "‘ ª"îù )øþ¦ùý ¤ª—ùý î‘õ•þø—¤(#•¢þ¢
ø¤÷¢ù ꑯõù îõ‘þü#^a—ú¤ö^b•¦øû÷¢ð‘ö ¤ù ¢÷©^cˆˆƒ#‚€ «.: õ¬ø¤Š ›¢øñ#……ˆí/Š…/
…€…Š}TK{^aˆˆƒ#†/„€€#}BF{#ª"îùû‘ý î‘õ•þø—¤ý#ª"îùû‘ý î‘õ•þø—¤ý -- ¥õøöû‘#^c}978
-600-5658-23-1{##


I use this code but not display all characters.
FileStream fs = new FileStream(open.FileName, FileMode.Open, FileAccess.Read);
                System.Text.Encoding enc = System.Text.Encoding.UTF8 ;
                byte[] data = new byte[fs.Length];
                fs.Read(data, 0, data.Length);
               string text = enc.GetString(data);
Posted
Updated 22-May-11 0:12am
v3
Comments
Sergey Alexandrovich Kryukov 20-May-11 22:21pm    
Why asking any question and not telling where it comes from, what's the purpose of it, etc?
Garbage in garbage out.
--SA

That doesn't look like UTF8 to me. You need to find out how the data is encoded if you want to extract something meaningful out of it. Where did you get the text from? The program that created it should tell you what encoding it is using or what format the byte stream is in.

At the moment your question is along the lines of 'I have unknown data how do I read it' which is impossible to answer in any more detail. Please update your question with more information about the byte stream and where it came from.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-May-11 22:17pm    
Correct, my 5.
--SA
Dalek Dave 22-May-11 6:13am    
Good answer
Looks very similar to your earlier question at:
How to read raw file and show it in UI[^]

Did you solve that one? If so, how is this different?

Looking at this and your earlier question, I'd guess that you are trying to read a book catalogue file of some sort - you have things that look like book titles / author's names / ISBNs (although not ones that Amazon seems to recognise).

If you've taken this file from a catalogue system, no-one is likely to be able to help you unless you tell them what system it came from. Over to you . . .
 
Share this answer
 
Are you sure that all bytes translate to printable characters, and none get converted to NULL? Run this via your debugger and check the length of data read in and the result of the encoded string.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-May-11 22:20pm    
There are no nulls there, and it does not really matter.
OP has some garbage (or not, some unknown kind of data), what to talk about? Nothing can help but some additional information. Where it comes from, etc.
--SA
Richard MacCutchan 21-May-11 3:51am    
A fairly typical question: no real problem description, no explanation of the background, and no response when asked to clarify.
Dalek Dave 22-May-11 6:14am    
Fair point
change the font type of textbox(Which one you are using to display) to "Terminal".It displays all charecters
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-May-11 22:18pm    
It has nothing to do with font.
--SA
Dalek Dave 22-May-11 6:15am    
Not a font problem, these are non-readable characters.
this is DOS text

encodin this text is:

VB
BM037
IBM437
IBM500
ASMO-708
DOS-720
ibm737
ibm775
ibm850
ibm852
IBM855
ibm857
IBM00858
IBM860
ibm861
DOS-862
IBM863
IBM864
IBM865
cp866
ibm869
IBM870
windows-874
cp875
shift_jis
gb2312
ks_c_5601-1987
big5
IBM1026
IBM01047
IBM01140
IBM01141
IBM01142
IBM01143
IBM01144
IBM01145
IBM01146
IBM01147
IBM01148
IBM01149
utf-16
unicodeFFFE
windows-1250
windows-1251
Windows-1252
windows-1253
windows-1254
windows-1255
windows-1256
windows-1257
windows-1258
Johab
macintosh
x-mac-japanese
x-mac-chinesetrad
x-mac-korean
x-mac-arabic
x-mac-hebrew
x-mac-greek
x-mac-cyrillic
x-mac-chinesesimp
x-mac-romanian
x-mac-ukrainian
x-mac-thai
x-mac-ce
x-mac-icelandic
x-mac-turkish
x-mac-croatian
utf-32
utf-32BE
x-Chinese-CNS
x-cp20001
x-Chinese-Eten
x-cp20003
x-cp20004
x-cp20005
x-IA5
x-IA5-German
x-IA5-Swedish
x-IA5-Norwegian
us-ascii
x-cp20261
x-cp20269
IBM273
IBM277
IBM278
IBM280
IBM284
IBM285
IBM290
IBM297
IBM420
IBM423
IBM424
x-EBCDIC-KoreanExtended
IBM-Thai
koi8-r
IBM871
IBM880
IBM905
IBM00924
EUC-JP
x-cp20936
x-cp20949
cp1025
koi8-u
iso-8859-1
iso-8859-2
iso-8859-3
iso-8859-4
iso-8859-5
iso-8859-6
iso-8859-7
iso-8859-8
iso-8859-9
iso-8859-13
iso-8859-15
x-Europa
iso-8859-8-i
iso-2022-jp
csISO2022JP
iso-2022-jp
iso-2022-kr
x-cp50227
euc-jp
EUC-CN
euc-kr
hz-gb-2312
GB18030
x-iscii-de
x-iscii-be
x-iscii-ta
x-iscii-te
x-iscii-as
x-iscii-or
x-iscii-ka
x-iscii-ma
x-iscii-gu
x-iscii-pa
utf-7
utf-8
 
Share this answer
 
Comments
R. Hoffmann 22-May-11 6:38am    
Don't post additional information as a solution, please. Rather edit the question and add it there.
Richard MacCutchan 22-May-11 7:32am    
What does this mean? Maybe it would be better to read and answer some of the suggestions above.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900