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 decode hex-encoding produced by nginx in javascript

For a request containing an utf-8 character, the nginx logs are encoded as follows: GET /asdf?v=\xE2\x86\x92 HTTP/1.1 where \xE2\x86\x92 is the utf-8 character →. Browsers encode the URL as /%E2%86%92, which I can easily decode with…
Luca Steeb
  • 1,795
  • 4
  • 23
  • 44
0
votes
1 answer

How to get the GOP size of a video with ffmpeg (C)?

Is there any way to get the gop size of a video I'm decoding using the ffmpeg C API, that isn't demuxing until I find an iframe?
necrosato
  • 109
  • 9
0
votes
1 answer

PHP function to decode strings with different encodings

I have a couple of encoded strings with different encoding types for example: Zubeh%F6r and Zubeh%C3%B6r, which both need to be decoded to Zubehör. The first example string can be decoded with the PHP function urldecode() but the only solution I…
DreiDe
  • 109
  • 1
  • 10
0
votes
1 answer

Recovering and Reordering Lost Bytes

When an image is sent to an application (e.g WhatsApp) over the network, the image is compressed to an extent. How can I recover these lost bytes and when I do, how can I regain the order in which they were, originally? Use case for this is in the…
Siya Mzam
  • 4,655
  • 1
  • 26
  • 44
0
votes
0 answers

Finding most and least frequent words from a text file in Java

This was a question i came across when i was generally practicing some java questions online . I concentrated on finding the most frequent words as i thought that coding the least frequent words would be easy. I finally managed to code the most…
0
votes
0 answers

UTF-8 string decoding in java, hiragana symbol became unreadable

I create the following code to translate string with given charset to some another. Please, see it bellow public static String convertCharsetOfTheString(String strToConvert,String targetCharsetName) throws UnsupportedEncodingException { …
0
votes
1 answer

Decoding a base64 encoded password in Node.js that was encoded in PHP

How can I decode a base64 string in Node.js that was encoded in PHP like: base64_encode(openssl_encrypt ('password', "AES-256-CBC", 'keyforthepassword', OPENSSL_RAW_DATA, '6114')) 6114 is an ID of a person. To decode this in PHP, I would…
Mathew
  • 11
  • 5
0
votes
0 answers

Powershell Character encoding (=F3n to ó)

So I am reading an email in PowerShell using Get-IMAP but the encoding is different from when then email is sent to when I read it in Powershell. The email is sent like Job Title: Administración# but when I go to read the string of the body back…
0
votes
1 answer

GStreamer: wrong frame colors on output of rtpjpegdepay/jpegdec

MJPEG RTSP stream server has been run using VLC. Then I have run one more VLC to determine that frames from stream have correct colors. All colors were correct. My task is to catch MJPEG frames on output of rtpjpegdepay plugin without any…
0
votes
3 answers

Create a file that uses 4-bit encoding to represent integers 0 -9

How can I create a file that uses 4-bit encoding to represent integers 0-9 separated by a comma ('1111')? for example: 2,34,99 = 0010 1111 0011 0100 1111 1001 1001 => actually becomes without spaces 0010111100110100111110011001 =…
chineerat
  • 97
  • 2
  • 12
0
votes
2 answers

Decode a ASCII string with Python 2.7.10

I'm fairly new to Python so I'm probably still making a lot of rookie mistakes. I was comparing two seemingly matching strings in Python, but it always returned false. When I checked the representation of the object, I found that one of the strings…
0
votes
0 answers

Decode a string from a byte array where I don't know the encoding

I have a byte array that needs decoding into a string. However, I don't know the format of the string - UTF-8, UTF-16, etc. What's the most effective way to decode the byte array in .Net? Or is trial and error the only real solution?
jimbo
  • 603
  • 9
  • 27
0
votes
1 answer

Conforming JSON response to struct and array Swift

Currently, I have a Struct called User, which defines the variables I want to decode from the HTTP response. Then, I have an array called users which will contain the response. As you can see, I populate users in the random8 function, but now in the…
Levi K
  • 573
  • 1
  • 4
  • 23
0
votes
0 answers

Recover plain text from a string which is a result of base64 decoding a plain text itself

I made an ajax request to my server and sent some data(plain text) as a query string variable. I saved that data into a text file after using base64_decode() function in php which obviously saves gibberish. Now I want to recover the plain text from…
0
votes
2 answers

"How to use Codable Protocol for a Networking Layer "

Im trying to build a network layer for my app so as I go through the project I'm getting the error "Cannot invoke 'decode' with an argument list of type '(Codable, from: Data)'" I think its happening because of error type or a mismatch Help me…
user8646151