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

Reading binary file with python without knowing structure

I have a binary file containing the position of 8000 particles. I know that each particle value should look like "-24.6151..." (I don't know with which precision the values are given by my program. I guess it is double precision(?). But when I try…
0
votes
1 answer

Sigfox data decode in c#

I have a sigfox device and am trying to get the device to send the temperature to the sigfox backend and then get sigfox to email me the temperature. Sigfox's webinar used the tempt::float:32:little-endian format, this however spits out the…
Skuffd
  • 334
  • 1
  • 4
  • 16
0
votes
2 answers

Not able to decode the encoded unicode string

i am not able to decode this encoded string to its unicode value:- %5Cu20A8 NSData *unicodedStringData = [@"%5Cu20A8" dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:NO]; NSString *stringValue = [[NSString alloc]…
Ashish P
  • 1,463
  • 1
  • 20
  • 29
0
votes
0 answers

Decoding error on what appears to be valid JSON

I've got a problem regarding JSON. The set-up is very simple. I'm using the Lumen framework and within the 'Controller' class I've got a function which gets some information from the database which I want to use in another controller called…
Serellyn
  • 405
  • 1
  • 9
  • 26
0
votes
1 answer

Gstreamer buffer pts

I have a simple mjpeg pipeline and I want to access the buffer on the sink to get the pts to calculate the latency. Pipeline: souphttpsrc -> jpegparse -> imxvpudec -> imxipusink What is the best way to do this? Some code examples would be…
Christoph Acs
  • 68
  • 1
  • 10
0
votes
0 answers

Decoding string using php

How do I decode this string into what it really is? \x5Bli\x5DLevel\x3A\x2023\x5B\x2Fli\x5D When decoded using some online tools it looks like this [li]Level: 23[/li] My problem starts with not knowing what it is encoded with or how it's been…
AeroMaxx
  • 213
  • 2
  • 9
0
votes
2 answers

Encode Decode using python

I have this function in python Str = "ü"; print Str def correctText( str ): str = str.upper() correctedText = str.decode('UTF8').encode('Windows-1252') return correctedText; corText = correctText(Str); print corText It works and…
0
votes
0 answers

What is the advantage of generating and modeling a codeword all at zero?

In channel coding, you often generate and modulate the codeword all at zero to test performance of a decoder. (For example codeword = zeros (1,n); x = 2*codeword-1) in other cases the codeword is generated and modulate from :word = rand(1,n);…
m2016b
  • 534
  • 5
  • 19
0
votes
0 answers

Error Control Coding - Hamming Soft Decoding

I want to create the Hamming soft decoder using the Euclidean distance (with fonction repmat). I tried to program but it does not work as I want, I do not find the right BER. Anyone detected the error in my decoder? % Soft decoding Matlab Code : n…
m2016b
  • 534
  • 5
  • 19
0
votes
1 answer

Which solution to use at the time of encoding string using UTF - 8 in android?

Whenever i am trying to encode or decode a string using UTF - 8 it is showing me Unhandled Exception: UnsupportedEncodingException. So Android Studio is giving me two solution, which are 1) Use throws UnsupportedEncodingException 2) put that piece…
Niki
  • 1,566
  • 1
  • 19
  • 36
0
votes
4 answers

Python Text Encoding

I have this text in a file - Recuérdame (notice it's a French word). When I read this file with a python script, I get this text as Recuérdame. I read it as a unicode string. Do I need to find what the encoding of the text is & decode this? or…
Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
0
votes
1 answer

Nodejs Expressjs Base64 encode/decode missing r char

I have a problem with Base64 encoding/decoding. I have google chrome extension which scraps some simple data from opened web page like title, URL, image and then I am doing encoding of all these data and sending them to my nodejs app route. The…
Nezir
  • 6,727
  • 12
  • 54
  • 78
0
votes
1 answer

Android : Encoding pdf to base64 & decoding back to pdf gives "This document cannot be opened"

I am trying to first select pdf file, then encode it to base64 and save it to shared preference. After that, decode and save to pdf. And open that pdf to view. When opening it displays message "This document cannot be opened". It looks like there…
Binod Lama
  • 226
  • 5
  • 24
0
votes
0 answers

Decode Data that is base64String to String utf Swift

A library save a token as Data in UserDefaults //loading the token if let token = UserDefaults.standard.object(forKey: "token") as? Data { let base64Encoded = token.base64EncodedData let base64EncodedString = token.base64EncodedString() } When I…
kuzdu
  • 7,124
  • 1
  • 51
  • 69
0
votes
1 answer

Decode Text from Request.InputStream in Asp.net C#

I'm trying to retrieve data from a hidden input of my HTML: When I try to get its value by Request.InputStrem after submit the form I get this text: @@M%C3%ADnimo My…