Questions tagged [decoding]

Decoding is the reverse of encoding.

Decoding is the reverse of , which is the process of transforming information from one format into another understandable by a receiver. In communication theory and coding theory, decoding is the process of translating received messages into codewords of a given code. Like encoding, decoding applies to information of various forms:

1741 questions
0
votes
1 answer

Cannot convert from UTF8 to ASCII

I used some online encoding detection so all of them are saying that 2015%2d03%2d31 is encoded by UTF8. So I used this code to decode it and to see 2015-03-31 But it doesn't work. private static string UTF8toASCII(string text) { …
NoWar
  • 36,338
  • 80
  • 323
  • 498
0
votes
1 answer

How to encode/decode protocol buffer binary data(Integer) to string and string to binary?

I am making program using Protocol buffer and smack. smack (xmpp) only can transfer string type data. and protocol buffer can produce byte array data. so, i do this make byte[] data using protocol buffer. encode byte[] data to string using…
dolseobi
  • 3
  • 1
  • 3
0
votes
1 answer

Unable to parse JSON array in Golang

I am having hard time parsing following JSON array. // JSON Array [ { "ShaId": "adf56a4d", "Regions": [ { "Name": "us-east-1a" } ] } .... more such ] Link to Go Playground :-…
Dhanu Gurung
  • 8,480
  • 10
  • 47
  • 60
0
votes
2 answers

UTF8 Encoding and decoding in python

I have a UTF8 String piped from Java to python. The end result is '\xe0\xb8\x9a\xe0\xb8\x99' Hence for example a = '\xe0\xb8\x9a\xe0\xb8\x99' a.decode('utf-8') gives me the result u'\u0e1a\u0e19' however, what i am curious is since the bytes…
aceminer
  • 4,089
  • 9
  • 56
  • 104
0
votes
3 answers

Own implement encoding and decoding base64 files in Python

I have a problem with my own implementation of base64 encoding. I have achieved to get the code below. It only works for text files with the English Letters, I suppose. For instance pdf file is encoded and decoded, it differs single characters. def…
Lajfmaster
  • 1
  • 1
  • 3
0
votes
1 answer

Decoding hex encoded/obfucated javascript

I'm a SysAdmin that doesn't know much about javascript. I recently started running Snort on a network and it gave me the alert "ET WEB_CLIENT Hex Obfuscation of document.write % Encoding" on a website one of my users visited. Looking at the Snort…
user51279
  • 73
  • 1
  • 1
  • 6
0
votes
2 answers

Reverse engineering a data protocol

I have a device that is connected via a serial port to my PC, and I'm trying to figure out how it sends data. (to make a long story short) I have an app that can instruct it to send text to me over serial, and I'm trying to figure out how the device…
Piotr
  • 541
  • 4
  • 19
0
votes
2 answers

Can GOP have more than 1 I-frame?

According to this GOP can have more than one I-frame. According to wikipedia: An I frame indicates the beginning of a GOP. If every I-frame starts new GOP it implies one I-frame per GOP. I believe that wikipedia is wrong. But I have also other…
user1723095
  • 1,181
  • 1
  • 13
  • 24
0
votes
0 answers

Why can't I decode Android encoding image using base64String with an other decoder?

I have an image that I encode using this code : Bitmap bm = BitmapFactory.decodeFile(selectedImagePath); ByteArrayOutputStream baos = new ByteArrayOutputStream(); bm.compress(Bitmap.CompressFormat.JPEG, 100, baos); //bm is…
AshBringer
  • 2,614
  • 2
  • 20
  • 42
0
votes
0 answers

Why am I having 2 differents base64 Encoding of an image?

I'm loading a picture from my phone then I'm encoding it using base64 encoding just like this : Bitmap bm = BitmapFactory.decodeFile(selectedImagePath); ByteArrayOutputStream baos = new ByteArrayOutputStream(); …
AshBringer
  • 2,614
  • 2
  • 20
  • 42
0
votes
3 answers

php encoding and decoding

Encoding/Decoding working differentlty on different servers. Locally I'm running PHP v5.6. default_charset = UTF-8 according to php_info(). When I pass the value 's in the URL it displays correctly in an input field as 's. Remotely my Godaddy server…
user1344131
  • 225
  • 1
  • 4
  • 13
0
votes
1 answer

MavLink UART Messages Decoding (PX4Flow Module)

I am using the PX4Flow Optical Flow Control Module with a Raspberry Pi, I receive Mavlink Messages through UART and need to decode them. Does anyone know where I can find the Code to do that? I'm writing in C. I've searched Google for hours and…
user3030653
  • 41
  • 2
  • 9
0
votes
1 answer

Perf: Viewing thousands of images in Silverlight 3 on a 3D Wall

I currently work on a very cool Silverlight app that displays photos in a 3D wall space like the Wall3D demo that is thrown in with Blend 3. The problem I am currently facing is performance. The app works like this: As you scroll right or left the…
0
votes
1 answer

JSON incomplete variable

for some reason I have a problem getting a JSON input into PHP. Basically, I am importing a variable from a url-encoded JSON, the bit of code I have problem with looks like this: "nearest_area": [ { "country":…
0
votes
1 answer

How to decode encoded escape characters in Java?

Consider the following JSON Object, { "params":[{ "name":"param1", "value" : "%0A" }, { "name":"param2", "value" : "%09" }, …
Suraj HK
  • 289
  • 2
  • 10
  • 20