Results 1 to 30 of 31
-
2020-04-15, 11:50 PM (ISO 8601)
- Join Date
- Jun 2011
- Location
- Washington
- Gender
How do I translate binary to text?
So... I thought this would be a simple question, buuut google kinda failed for me. Is there any standard chart for translating binary to letters?
My curiosity got sparked while playing an old rpg(Breath of Fire 3) when this sequence popped up;
I mean, sure it miiight be random, but it made me curious if it actually said anything.Meow(Steam page)
[I]"If you are far from this regions, there is a case what the game playing can not be comfortable.["/I]
-
2020-04-16, 12:07 AM (ISO 8601)
- Join Date
- Nov 2006
- Location
- Watching the world go by
- Gender
Re: How do I translate binary to text?
You would need to know what the encoding used is. I think ascii uses 7 bits per character, but you need at least 5 for a-z or 6 for a-Z. Alternatively, you could try decoding it as Morse code, but that also uses the time between pulses to tell when a character or word finishes, so it is ambiguous if you just have the dots and dashes.
-
2020-04-16, 01:28 AM (ISO 8601)
- Join Date
- Feb 2007
- Location
- Manchester, UK
- Gender
Re: How do I translate binary to text?
You mean ASCII? That is usually a 7-bit encoding, yes, but the bit sequence in the original screenshot has 23 bits, which doesn't divide neatly into any sort of normal encoding scheme, unfortunately. My suspicion is that it's just a random sequence rather than having any sort of meaning.
-
2020-04-16, 02:41 AM (ISO 8601)
- Join Date
- Jun 2013
- Location
- Bristol, UK
Re: How do I translate binary to text?
ASCII is a 7 bit encoding, but it would usually be encoded in 8 bits because memory is alway in powers of 2. Then there's Unicode in many versions, one of which is 8 bytes of 8 bits each which encodes pretty much every written human language including chinese.
Yeah, 23 is a prime number so that's got to be garbage.The end of what Son? The story? There is no end. There's just the point where the storytellers stop talking.
-
2020-04-16, 04:23 AM (ISO 8601)
- Join Date
- Aug 2013
Re: How do I translate binary to text?
Yeah. Without that information "binary" doesn't actually mean anything other than a number expressed using only 0 and 1.
Binary 10 stands for 2 in base10. 2 what? We don't know, could be number 2, could be 2nd character in a system, could be number 2 expressed in hexadecimal refers to a charactertable of some kind.
The OP's question is understandable, I'd be inclined to think it "meant" something too, but without further information than "it is binary" we cannot decode it.
-
2020-04-16, 05:12 AM (ISO 8601)
- Join Date
- Feb 2007
- Location
- Manchester, UK
- Gender
Re: How do I translate binary to text?
That may be the case most of the time these days, but at the time ASCII was codified in 1963 there were all sorts of commonly used bit counts used as the basic size of a byte. In fact, the world's first integrated circuit microprocessor, the Intel 4004, had a 4-bit word, and I've heard of at least one machine (I forget which one) that used 14 bits. It wasn't really until the late 60s and early 70s that they started to standardise on 8 bits.
-
2020-04-16, 06:00 AM (ISO 8601)
- Join Date
- Feb 2014
- Location
- Denmark
- Gender
Re: How do I translate binary to text?
As to how - well, you use a converter: https://www.rapidtables.com/convert/...-to-ascii.html
Whether it says anything, I couldn't say.
-
2020-04-16, 06:53 AM (ISO 8601)
- Join Date
- Sep 2016
-
2020-04-16, 08:49 AM (ISO 8601)
- Join Date
- Nov 2006
- Location
- Watching the world go by
- Gender
-
2020-04-16, 10:19 AM (ISO 8601)
- Join Date
- Dec 2009
- Location
- Birmingham, AL
- Gender
Re: How do I translate binary to text?
Cuthalion's art is the prettiest art of all the art. Like my avatar.
Number of times Roland St. Jude has sworn revenge upon me: 2
-
2020-04-16, 10:21 AM (ISO 8601)
- Join Date
- Nov 2006
- Location
- Watching the world go by
- Gender
Re: How do I translate binary to text?
-
2020-04-16, 10:53 AM (ISO 8601)
- Join Date
- Aug 2007
- Location
- Imagination Land
- Gender
Re: How do I translate binary to text?
Given the character, who is a robot assistant, I assume it's probably R2D2-like beeps and boops rather than some kind of code.
-
2020-04-16, 11:37 AM (ISO 8601)
- Join Date
- May 2016
Re: How do I translate binary to text?
It's at least plausible that leading zeroes have been dropped, seeing as it's a displayed binary sequence and leading zeroes are not significant - assuming we're not messing around with a signed or fractional data type, anyways, though if you know the data type you could probably still understand it with leading zeroes dropped. Telling you that I have an eight-bit variable storing the value 00001011 isn't really any different than telling you that I have an eight-bit variable storing the value 1011, as long as it's understood that I'm dropping leading zeroes in the latter and giving you a binary number in both cases.
Last edited by Aeson; 2020-04-16 at 12:01 PM.
-
2020-04-16, 11:40 AM (ISO 8601)
- Join Date
- Nov 2006
- Location
- England. Ish.
- Gender
Re: How do I translate binary to text?
Warning: This posting may contain wit, wisdom, pathos, irony, satire, sarcasm and puns. And traces of nut.
"The main skill of a good ruler seems to be not preventing the conflagrations but rather keeping them contained enough they rate more as campfires." Rogar Demonblud
"Hold on just a d*** second. UK has spam callers that try to get you to buy conservatories?!? Even y'alls spammers are higher class than ours!" Peelee
-
2020-04-16, 12:02 PM (ISO 8601)
- Join Date
- Aug 2007
- Location
- Imagination Land
- Gender
Re: How do I translate binary to text?
-
2020-04-16, 01:56 PM (ISO 8601)
- Join Date
- Sep 2016
Re: How do I translate binary to text?
It's a joke, 2's complement is a way of writing (negative) numbers in binary.
The problem with morse is (as already stated) you need to put the gaps in. And the way morse is designed makes that harder anyway.
There's base 64 (although that's a way of packing groups of 6 bits into groups of 80
I'm sure I have seen a morse like code where each letter end is obvious but the bit length of them is optimised (based around binary trees, unlike mores once you use a sequence for the letter that branch terminates).Last edited by jayem; 2020-04-16 at 01:58 PM.
-
2020-04-16, 02:02 PM (ISO 8601)
- Join Date
- Nov 2006
- Location
- England. Ish.
- Gender
Re: How do I translate binary to text?
Last edited by Manga Shoggoth; 2020-04-16 at 02:03 PM.
Warning: This posting may contain wit, wisdom, pathos, irony, satire, sarcasm and puns. And traces of nut.
"The main skill of a good ruler seems to be not preventing the conflagrations but rather keeping them contained enough they rate more as campfires." Rogar Demonblud
"Hold on just a d*** second. UK has spam callers that try to get you to buy conservatories?!? Even y'alls spammers are higher class than ours!" Peelee
-
2020-04-16, 02:22 PM (ISO 8601)
- Join Date
- Feb 2007
- Location
- Manchester, UK
- Gender
Re: How do I translate binary to text?
But that only works if you know the bit length of the pattern you're looking at. Is this 3x8 with leading zeroes dropped? 4x6? Also, a computer (or presumably the robot who this text is supposed to be from) never drops leading zeros from a bit stream, because the other end isn't going to know where the boundaries between the bytes are.
-
2020-04-16, 10:27 PM (ISO 8601)
- Join Date
- May 2016
Re: How do I translate binary to text?
3x8 and 4x6 are the same length - 24 bits. Having the leading zero wouldn't help to distinguish either one of those from the other; a better example would be 4x7 and 3x8, since retention of the leading zeroes would allow you to distinguish between the 28-bit 4x7 stream and the 24-bit 3x8 stream.
Also, a computer (or presumably the robot who this text is supposed to be from) never drops leading zeros from a bit stream, because the other end isn't going to know where the boundaries between the bytes are.
Also, the 'other end' can work out where the byte boundaries are, because unless you're a moron the only leading zeroes you'd drop are the first ones in the stream - you'd send 0001 0111 0101 1101 as 1011101011101, not as 11111011101. It'd be a bit of extra work as compared to just sending 0001011101011101, it'd have issues if for any reason the stream you needed to send lead with whatever was represented by the value 0 in whatever data type you're using, and for a real bit stream the reduction in signal length from dropping a few leading zeroes would probably be too insignificant to be worth the trouble of sorting out the boundaries at the far end, but it could be done.
Beyond that, while computers sending bit streams to other computers are very unlikely to be using a communications protocol that drops leading zeroes, computers displaying binary values for humans may drop the leading zeroes, because if it's being displayed for human perusal it'll often be formatted for human convenience before being put out; a 4x4 bit stream that goes 0001011101011101 could easily be displayed as 1 111 101 1101. Moreover, assuming computer-human audio communications using a two-tone system, there'd be greater incentive to drop leading zeroes than in a computer-computer bit stream, because the time savings for not sending the leading zeroes becomes much more significant - you probably can't send a person a continuous arbitrarily-long bit stream and expect them to interpret it correctly and the effective bit rate for a computer-human communications protocol in which the computer uses a two-tone audio signal to pass binary data to the human is necessarily going to be far lower than is typical for computer-computer communications protocols, so the time cost of retaining leading zeroes becomes much more significant, because you're breaking the bit stream up into smaller chunks so that the human can interpret them as it comes in (thus gaining more places in which it'd be reasonable to drop leading zeroes) and because signalling each bit takes significantly longer than would be the case for a computer-computer communication. Moreover, since humans do not normally communicate using two-tone binary audio signals, there's kind of a built-in assumption that the human is familiar with whatever protocol the robot is using to communicate and thus is reasonably likely to be able to interpret the message when leading zeroes are dropped.Last edited by Aeson; 2020-04-16 at 10:27 PM.
-
2020-04-17, 01:29 AM (ISO 8601)
- Join Date
- Feb 2007
- Location
- Manchester, UK
- Gender
Re: How do I translate binary to text?
OK, just using an example from the ASCII character set--let's say I send a stream consisting of 110001. Is that the character 0110001 (e.g. number 1) or the character 110001 (e.g. letter b)? There's no way for you to tell if I've dropped the leading zero! I suppose you could count the total number of bits I send and figure out how many bits I dropped at the start from that, but that means you can't even start decoding the message until you've received it in its entirety. It's just computationally easier to handle if I send the entire bitstream including any leading zeroes--the minor saving in bandwidth usage isn't worth the massive additional complexity in decoding.
It's worth noting that in an actual transmission stream there will often be additional bits sent with every character so you know where they start and end, because if a couple of bits get corrupted or dropped due to transmission noise, you don't want to have to resend the entire thing.
-
2020-04-17, 02:42 AM (ISO 8601)
- Join Date
- Nov 2014
- Gender
-
2020-04-17, 03:10 AM (ISO 8601)
- Join Date
- Nov 2005
- Location
- Worcestershire, UK
Re: How do I translate binary to text?
Of course, we're just assuming it's binary. It could be literally any base system, but coincidentally the number displayed has no other numerals in it.
-
2020-04-17, 09:46 AM (ISO 8601)
- Join Date
- Jun 2013
- Location
- Bristol, UK
Re: How do I translate binary to text?
If computers were sending to computers there might well be parity bits, I'm pretty sure I've heard of ASCII sometimes being 11 bits per byte.
Then again, there's also EBCDIC, which also codes binary to letters and numbers but is incompatible with ASCII (you can convert if you know which you have, but if you assume what you have is one but in fact it is the other, the result will be obvious garbage).
https://en.wikipedia.org/wiki/EBCDICLast edited by halfeye; 2020-04-17 at 09:52 AM.
The end of what Son? The story? There is no end. There's just the point where the storytellers stop talking.
-
2020-04-17, 11:14 AM (ISO 8601)
- Join Date
- May 2016
Re: How do I translate binary to text?
Computers - and, for that matter, humans - cannot distinguish between 0110001 (insignificant leading bit) and 0110001 (significant leading bit) without additional information, so your example is either wrong or incomplete. Since '1' is 0x31 (00110001) and 'b' is 0x62 (01100010) in the ASCII character set, I'm going to say it's wrong, because if you're only dropping leading zeroes then '1' is 110001 and 'b' is 1100010.
I suppose you could count the total number of bits I send and figure out how many bits I dropped at the start from that, but that means you can't even start decoding the message until you've received it in its entirety.
It's just computationally easier to handle if I send the entire bitstream including any leading zeroes--the minor saving in bandwidth usage isn't worth the massive additional complexity in decoding.
for a real bit stream the reduction in signal length from dropping a few leading zeroes would probably be too insignificant to be worth the trouble of sorting out the boundaries at the far end
If computers were sending to computers there might well be parity bits, I'm pretty sure I've heard of ASCII sometimes being 11 bits per byte.
Regardless, if we're looking at a bit stream produced by a communications protocol with error detection or error correction, then "it's 23 bits so it has to be garbage" is nonsense, but determining what it says requires knowing not only what data type we're looking at but also what communications protocol is in use.Last edited by Aeson; 2020-04-17 at 11:22 AM.
-
2020-04-17, 03:05 PM (ISO 8601)
- Join Date
- Aug 2007
- Location
- Imagination Land
- Gender
Re: How do I translate binary to text?
I've got to say that, if I were a game designer or script writer and I needed to have a small robot say something in "computer language", I'd just tap a bunch of ones and zeroes until I thought it looked good.
-
2020-04-17, 07:00 PM (ISO 8601)
- Join Date
- Sep 2011
- Location
- Calgary, AB
- Gender
-
2020-04-18, 12:10 AM (ISO 8601)
- Join Date
- Feb 2007
- Location
- Manchester, UK
- Gender
Re: How do I translate binary to text?
Happened a few times with Bender in Futurama, as I recall. There's a horror-themed episode where he sees a binary code and isn't concerned about it, but when he sees it in a mirror, he freaks out--if you work out what the mirror code is, it's "666", aka the number of the beast.
-
2020-04-18, 09:23 AM (ISO 8601)
- Join Date
- Dec 2009
- Location
- Birmingham, AL
- Gender
Re: How do I translate binary to text?
Cuthalion's art is the prettiest art of all the art. Like my avatar.
Number of times Roland St. Jude has sworn revenge upon me: 2
-
2020-05-09, 06:02 PM (ISO 8601)
- Join Date
- Oct 2012
- Location
- UTC+1
Re: How do I translate binary to text?
Googling some keywords related to the question in the OP, brought me to this GameFAQ page which claims to contain the game script to BoF3. In it, the binary is divided up into spaces:
That is "1001 0101 01110 10 00001 011.."
A cursory inspection of this doesn't reveal any further information to me, but maybe it'll help someone else here make more sense of it?Last edited by ereinion; 2020-05-09 at 06:02 PM.
-
2020-05-10, 12:53 AM (ISO 8601)
- Join Date
- Sep 2016