I need a GUI application that shows the binary representation of texts. I have one for windows, but it's been acting strange, so I want something Linux native to replace it. Any suggestions?

Here is an example, http://software.ellerton.net/txt2bin/ of the kind of program I mean.

link|improve this question

11  
What exactly do you mean by "text to binary"? What are you trying to convert? – codeMonk Dec 3 '10 at 3:29
What's the name of the current windows program? – Marco Ceppi Dec 3 '10 at 3:59
the windows program is txt2bin or something like that. I just need to convert regular text to binary (type in text, the program outputs binary). – Roland Taylor Dec 3 '10 at 5:21
I tried uudecode but it did not work for me. Kept saying no begin line was found. – Roland Taylor Dec 3 '10 at 5:21
1  
@Roland: Ask a clearer less vague question. Read chiark.greenend.org.uk/~sgtatham/bugs.html – poolie Dec 7 '10 at 0:35
show 9 more comments
feedback

1 Answer

up vote 5 down vote accepted

You could try ppt from the bsdgames package. It will output ASCII as a binary punchcard.

You could also use a python script:

$ python -c 'for char in "Hello, world!": print(bin(ord(char)))'
0b1001000
0b1100101
0b1101100
0b1101100
0b1101111
0b101100
0b100000
0b1110111
0b1101111
0b1110010
0b1101100
0b1100100

0b100001

link|improve this answer
Thank you very much. An answer - at last. – Roland Taylor Dec 7 '10 at 3:36
Which one did you use, ppt, or python? – kzh Dec 7 '10 at 15:19
Actually, a friend on this site is writing a wonderful application in python ^^ – Roland Taylor Dec 7 '10 at 15:25
+1 ppt is | oo .oo || ooo .o o|| oo o.oo || oo o.oo || oooo. o| ... The whole bsdgames package is a real blast from the past : – Peter.O May 23 '11 at 17:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.