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

XXTEA encryption using 128 bit fixed key in java

I must get the output of 56 bytes of raw binary in hexadecimal format. The below coding is what I have tried, but I am getting wrong output. This is the output I am…
0
votes
0 answers

java net URLDecoder decode decoding does not work

I am trying first to grab all link in a web page by applying the script below: and then i want to use these links again. but since decoding does not always work and this result in an improper link, and i receive 404 error. Document doc =…
mlee_jordan
  • 772
  • 4
  • 18
  • 50
0
votes
1 answer

mcrypt decoding errors

I have a few issues with the following php functions (part of a bigger class). //encode public function acc_pw_enc($text, $key) { $text_num = str_split($text, 8); $text_num = 8 - strlen($text_num[count($text_num)-1]); for ($i=0;…
Kyle Hudson
  • 898
  • 1
  • 14
  • 26
0
votes
2 answers

How the encode method return an non-hex code point in Python?

There are some special chinese words like '觱' '踨', when I check its code point of gb18030 as follow. >>>u'觱'.encode('gb18030') '\xd3v' I have been confused about the code point '\xd3v'. It's not a correct hex-digits. Who can explain it clearly? …
Qinghua
  • 351
  • 3
  • 10
0
votes
1 answer

Python Caesar cypher using the most common letter to decode a message

I'm trying to create a Caesar cypher decoder that takes in a coded message, looks for the most common letter used, assumes this letter is "e" (since it is the most commonly used letter), and then shifts the letters the correct amount of places until…
0
votes
1 answer

Decoding a String that Contains Encoded Characters

I have some strings that I am pasting in to my script as test data. The strings come from emails that contain encoded characters and it's throwing a SyntaxError. So far, I have not been able to find a solution to this issue. When I print…
RattleyCooper
  • 4,997
  • 5
  • 27
  • 43
0
votes
1 answer

ffmpeg seeking to I-frame

Is it possible to seek to a I-Frame using the av_seek_frame() function. The problem I am facing is that if I seek in a AVC file I get a lot of noise if I dont flush the buffer. And if I flush the buffer the decoder dose not return a frame until it…
user3398748
  • 3
  • 1
  • 3
0
votes
1 answer

Unable to decode a URL string encoded by MVC

I'm passing a string with a URL from the controller to the view (using a model). While the string is in the controller, it is not encoded, but in the view the URL is encoded. URL before…
goldor
  • 31
  • 2
  • 6
0
votes
1 answer

Decoding a file with bit-manipulation

Constantly getting segmentation fault, and i'm not able to solve this. If the program runs the "encodeFile" - function, the program should be able to read the input file character by character and compress the character of a 2 bit value. The values…
zuni buni
  • 23
  • 2
0
votes
1 answer

Perl converting base64 back to binary

I have a binary string of the form "000000110111010100110110001010001010110111010110010001111111101010000001" # for example to encode to base 64, i use pack and encode_base64 my $base64 = encode_base64 pack 'B*', $binaryString; Which I would then…
Yusuf Ali
  • 95
  • 2
  • 11
0
votes
1 answer

Decoding of a encoded base64 string

I have a base64 encoded string S="aGVsbG8=", now i want to decode the string into ASCII, UTF-8, UTF-16, UTF-32, CP-1256, ISO-8659-1, ISO-8659-2, ISO-8659-6, ISO-8659-15 and Windows-1252, How i can decode the string into the mentioned format. For…
rajat shukla
  • 11
  • 1
  • 2
0
votes
1 answer

Decoding JSON in Perl

I have a JSON file like this one (it is a piece of the entire JSON file): { id => "mgp1310", samples => [ { envPackage => { data => { diss_carb_dioxide => { aliases => ["sediment_diss_carb_dioxide"], …
user2979409
  • 773
  • 1
  • 12
  • 23
0
votes
2 answers

Majority logic decoding Haskell

I have to calculate the probability of the proper decoding of a bit copied n times. The following formula is supposed to be the answer: In Haskell, I coded it as follows: fac 1 = 1 fac n = fac (n-1) * n --prob :: (Integral b, Fractional b) => (b,…
0
votes
1 answer

reading a file in cp819 encoding

I have a file (downloaded from somewhere on the www) that is encoded in CP819, and want to read it then further handle the data in UTF-8. Tried all the examples I could find here and elsewhere, nothing worked. The furthest I could get: with…
Karlchen9
  • 25
  • 5
0
votes
0 answers

MVC 4 HTML is never decoded on POST

I am using a Kendo editor to create email templates and on POST, once a change to the template has been submitted, always renders in encoded HTML. This is my razor code on the page: @model Business.Models.Administration.EmailSetupViewModel @using…
nick gowdy
  • 6,191
  • 25
  • 88
  • 157