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
0 answers

how to find which encoding method is being used

I have a php page receiving encoded string with hex values and then with some decoding method get the id from database. i.e. - this encoded value - 70de63286c26d58f0a9ea5a736447910ee1 becomes this id - 36395756. Is there an option to figure out…
eladelad
  • 99
  • 2
  • 10
0
votes
1 answer

In Jython, how can I create unicode string from UTF-8 byte sequence?

A Japanese Unicode character 'あ's UTF-8 representation is a three bytes sequence, E38182. And I have it in a Jython's list like this; >>> [0xE3, 0x81, 0x82] [227, 129, 130] Can I convert this UTF-8 byte sequcne list to a Jython's unicode string? I…
wataradio
  • 85
  • 10
0
votes
2 answers

How to encode and decode paths in python?

here is the problem, I want to dump and load windows paths in python under a unix system: a = {"c":"a\b"} b = json.dumps(a) json.loads(b) {u'c': u'a\x08'} So, where did I go wrong?
Kai
  • 376
  • 1
  • 4
  • 17
0
votes
2 answers

PNG File Filtering Method

So reading PNG file specification indicates that before compression, the image is filtered. Currently only filtering method 0 is defined (2nd last byte in IHDR chunk). Method 0 has 5 sets of filtering functions: 0 = None 1 = Sub 2 = Up 3 = Average 4…
ChaoSXDemon
  • 860
  • 10
  • 29
0
votes
2 answers

Beep Sound when Decoding DSP TrueSpeech To PCM

I'm trying to decode array of bytes from DSP TrueSpeech to PCM. When we convert this array as part of streaming (divide it to packets) we can hear some strange "Beep" tones after the decoding. We tried to decode the entire WAV file in one piece and…
0
votes
1 answer

avcodec_decode_video2 crashes, when avpkt.size is assigned

the avcodec_decode_video2 method crashes, when I try to assign the avpkt.size. When I set it to 0 it works, but it doesn't decode anything (the return value is 0). Am I somthing missing, or what value has to be assigned to avpklt.size? I want to…
klanm
  • 3,168
  • 3
  • 19
  • 22
0
votes
1 answer

Unknown decoding of credentials for HTTP Post request

I have a 15 years old internet game and when it is open you can put in your username and password to connect with the server of the game. On the website of the game you can always see which users are connected. I want to have a button on my app or…
0
votes
1 answer

Data structure for buffering encoded audio in android

I have TCP client which received audio (encoded) data through socket. I have to keep received data in some buffer and provide to decoder when requested by decoder chunk by chunk. Data is in byte[] and array size can vary. What should I use as buffer…
SohailAziz
  • 8,034
  • 6
  • 41
  • 43
0
votes
2 answers

Data Encoding and Decoding while exporting and importing

I am exporting data to CSV which may be in Japanese or English. Currently I am exporting it using Encoder UTF8Encoding. I can see data in Japanese in the CSV file after exporting, but now I want to import this data to my application. Do I need to…
Payal S
  • 11
  • 2
0
votes
0 answers

Convert text to Unicode/UTF-8

I have a text - "¸ÁévÀAvÀæöå ºÉÆÃgÁlzÀ°è «zÁåyðUÀ¼ÀÆ ¥Á¯ÉÆÎArzÀÝgÀÄ.", which I copied from a web page which had UTF-8 encoding. There is this website ASCII2UNICODE in which I copy-paste the text above and after converting I get - "ಸ್ವಾತಂತ್ರ್ಯ…
Xavier DSouza
  • 2,861
  • 7
  • 29
  • 40
0
votes
1 answer

JavaScript Encoding & Decoding Error

I am getting an issue with Javascript Encoding and Decoding. I have a json object which contains a string encoded in UTF-8 like 'R\xc3\xa9union'. To ensure that the Javascript file correctly displays the string, I'm adding an attribute charset to…
Noor
  • 19,638
  • 38
  • 136
  • 254
0
votes
3 answers

How to convert binary to sentence

I've created a simple Program to store and Retrieve the Passwords whenever I want.For example, I have one password which is Pass so its binary will be 01010000011000010111001101110011. I've created a program that will convert it to binary and will…
Adarsh Sojitra
  • 2,059
  • 1
  • 27
  • 50
0
votes
1 answer

Debugging huffman decoding

While I was debugging my huffman decoding function decode :: (Tree a, [Bit]) -> [a] decode (tree, list) = case list of [] -> case tree of Leaf pos a -> replicate_Pos pos a _ -> (num_only (follow_bit_path_to_one_value tree list)):…
0
votes
2 answers

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

I have a lxml.objectify.StringElement which is named elm and is: u'\u266b\u266b\u266b\u266b\u266b\u266b\u266bHow do you get a job on the Yahoo staff when you are older?\u266b\u266b\u266b\u266b\u266b?' I want to turn it to a str: str(elm) But I get…
someone
  • 205
  • 3
  • 14
0
votes
2 answers

Huffman decoding in c using tree

I've got to decompress a string that was encoded with a Huffman tree, but the code has variable length and not all inputs are in prefix, in which case I should print "invalid" and finish execution. The input consists of: number of different…
Caio Dantas
  • 1
  • 1
  • 2
1 2 3
99
100