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

Convert from System.Byte[] to String fails

A product that we use is storing the Letter Express (Mail Merge) template as a BLOB (or CLOB...I cannot remember right now). We use the Product's API to call this letter express and send an email. Now, we want the content of the email to be…
Kanini
  • 1,947
  • 6
  • 33
  • 58
0
votes
0 answers

GDB print string in an wrong format, a little like octal string

I show charset in my gdb: The host character set is "UTF-8". The target character set is "UTF-8". The target wide character set is "auto; currently UTF-32". But when I try to output a string in a register p (char*) $register I got a very strange…
Wang Yi
  • 31
  • 1
  • 7
0
votes
2 answers

PHP imap how to decode email body correctly?

I've developed an email system on my own using php's imap and everything works fine, except for emails that are written in Arabic language, i've tried all the decoding functions and nothing seems to work. I got the subject to work perfectly by using…
Fadi Obaji
  • 1,454
  • 4
  • 27
  • 57
0
votes
2 answers

How can I convert this hashed string to a usable string?

I have a string that I found, that is probably hashed in base64. Decoding it returns error characters in every encoding I've tried. I also can't access the code that generated it and can't reverse engineer it. This is the…
DimosthenisK
  • 61
  • 1
  • 6
0
votes
1 answer

Geting the encoding of an string that has \ values

I have the following string that I am receiving via a python server. Do not have access to that server. \xa1\x823\xc2\xd5\x823\xc2\xff\x823\xc2\x12\x833\xc2\x1b\x833\xc2\x16\x833\xc2\x1e\x833\xc2…
Rajib
  • 36
  • 4
0
votes
1 answer

How to Handle Encoding a Swift Struct Containing Swift Struct as Property

I have a requirement to persist a preferred Location that has been selected by a user. The Location contains a few properties: public struct Location { // MARK: - Properties public let identifier: Int public let name: String …
Nick Kohrn
  • 5,779
  • 3
  • 29
  • 49
0
votes
0 answers

Decoding a Huffman Tree from a Binary Number in C++

I'm having trouble decompressing this Huffman tree. I can't seem to keep up with everything that's going on and don't know how to approach decompressing it. It's a simple concept but involves a lot of different variables that are throwing me…
0
votes
0 answers

Decoding Option[Array[String]] field of a case class with circe

I am trying to decode a case class from JSON which contains fields that are defined as Option[Array[T]] and get decode failure when this field is missing. The decoder from circe is the default. case class Quotation(BasicCover: Option[BasicCover], …
Dimitris
  • 13
  • 1
  • 4
0
votes
1 answer

Time optimize C++ function to find number of decoding possibilities

This is an interview practice problem from CodeFights. I have a solution that's working except for the fact that it takes too long to run for very large inputs. Problem Description (from the link above) A top secret message containing uppercase…
0
votes
1 answer

decoding problem uiwebview

i am using uiwebview in my application. there are some links when user clicks a http search starts. it works fine but i have problems while getting "%58 den ysnky'ye tepki" it is given as "X'den ysnky'ye tepki". it has problems with %…
ysnky
  • 281
  • 4
  • 12
0
votes
1 answer

error while decoding html and farsi from hex encoding in python

I have some string in hex enocoding like this: data = \xd8\xa7\xdb\x8c \xd9\x84\xda\x86\xdb\x8c
\xd8\xa7\xda\xaf\xd8\xb1\xda\x86\xd9\x87 \xd8\xa7\xd9\x82\xd8\xaf\xd8\xa7\xd9\x85\xd8\xa7\xd8\xaa It contains some Persian string and some HTML…
Mehdi
  • 1,260
  • 2
  • 16
  • 36
0
votes
1 answer

How to get original image from http response using node.js

I am consuming third party service for downloading images but body of it's response includes html plus base64(not sure) image content on top. Response has content type as image/jpeg; charset=utf-8 Example response: ����JFIF``��C $.'…
0
votes
1 answer

How do decode html data in ios?

I have data in the form : %3Cp%3E%3Cstrong%3Ee-AWB+and+e I have to decode this and display in a Webview/UILabel! I have tried this - URL Decoding, but it isn't working for me
Akshay Yerneni
  • 103
  • 2
  • 11
0
votes
0 answers

Decode MJPEG video and convert it to RGB format efficently on android

I need to decode an MJPEG video stream from USB camera and convert the frames to RGB color format for further processing in opencv. I can access the MJPEG frames from the stream but I am unable to decode them efficiently. I tried Mediacodec but it…
Ahmed_Faraz
  • 615
  • 4
  • 25
0
votes
1 answer

MATLAB decoding ''braille'' using a table file to decode input into english. Issue with string being returned as a double

MATLAB decoding ''braille'' using a table file to decode input into english. Issue with string being returned as a double + possible incorrect use of iterations in for loop? for instance an input of a matrix = [1 0 0; 0 0 0] (which is equivalent…
CAKE
  • 13
  • 3