L
Luk Vloemans
Hey,
I'm currently working on a project to get GPS-data onto a PDA. At this
stage, I'm already getting data from the device, but my problem is: It's
rubbish. At least, it looks as if it were rubbish.
example: "`?~?\0?~?~????\0x?x?x?x?x?x~??x?x?xx?\0x?x?"
I found patterns in the code I received, so it's just encoded.
I download information byte-by-byte from the device, and store it in a
byte[] array. Because the GPS-device is made in Taiwan, the tokens are
in unicode (16-bit). The standard I'm want to use is ASCII.
Does anybody have an idea how I could translate the Unicode Byte Array
into a ASCII string ?
Thanks in advance for any assistance!
Greetz,
Luk Vloemans
IT Student
I'm currently working on a project to get GPS-data onto a PDA. At this
stage, I'm already getting data from the device, but my problem is: It's
rubbish. At least, it looks as if it were rubbish.
example: "`?~?\0?~?~????\0x?x?x?x?x?x~??x?x?xx?\0x?x?"
I found patterns in the code I received, so it's just encoded.
I download information byte-by-byte from the device, and store it in a
byte[] array. Because the GPS-device is made in Taiwan, the tokens are
in unicode (16-bit). The standard I'm want to use is ASCII.
Does anybody have an idea how I could translate the Unicode Byte Array
into a ASCII string ?
Thanks in advance for any assistance!
Greetz,
Luk Vloemans
IT Student