To convert some encoded data (e.g. bytes, electrical signals) to some representation ready for further processing (e.g. string, object, picture)
Questions tagged [decode]
4353 questions
1
vote
1 answer
How to Decode from utf 8 to Clean Text
Goal:
Decode from utf 8 to clean text
Problem:
Based on this code below, it doesn't want to decode from "masaväg" to "masaväg".
What part am I missing?
Thank you!
Info:
It works to decode from "masaväg" to "masaväg" in this…

HelloWorld1
- 13,688
- 28
- 82
- 145
1
vote
1 answer
Perl - How to decode or replace ' from database to single quote for browser display
I have found lots of questions close to this but, nothing that helped me solve it. Prob due to my lack of expertise.
PHP has html_entity_decode which could have helped but, Perl does not, I believe.
In my MySQL database I have ' " following…

DulcimerDude
- 13
- 3
1
vote
1 answer
Output black when I decode h264 720p with ffmpeg
First, sorry for my english. When I decode h264 720p in ardrone2.0 my output is black and I cant see anything.
I have try to change the value of pCodecCtx->pix_fmt = AV_PIX_FMT_BGR24; to pCodecCtx->pix_fmt = AV_PIX_FMT_YUV420P; and the value of…

José Marqueses Saxo
- 31
- 4
1
vote
1 answer
is it possible to decrypt this uuid into a number?
I have this uuid and I'm interested in finding the information behind it. I have a fair feeling that its a number but I'm not sure where to start to 'decode' it
7da32c8d-1f59-44a2-91b5-ac3a4141fd68

Hasan Qusay
- 81
- 1
- 7
1
vote
1 answer
Elixir decode with Poison
I'm getting this string as query result from my database:
"%Sample.Struct{list: [], total: \"0.00\", day: 6, id: \"8vfts6\"}"
Is there any way to convert this one back to map?
I'm getting this error decoding it with poison
** (Poison.SyntaxError)…

Razinar
- 727
- 3
- 13
- 21
1
vote
1 answer
Missing Data with URLSession and JSONDecode in Swift4
Using Swift4, iOS11.1, Xcode9.1,
The following parseData method almost works. Everything seems to work fine (and a correct JSON-data set is fetched by this URLSession and JSONDecode).
However, what is really surprising to me is the fact that a…

iKK
- 6,394
- 10
- 58
- 131
1
vote
1 answer
PHP - How can I decode HTML special character strings to the actual characters?
I have some text, for example: “ £ € “ I would like to decode it, so it outputs: £ €
I tried this code, but it doesn't work:
utf8_decode($utf8);
iconv('UTF-8', 'ISO-8859-1', $utf8);
mb_convert_encoding($utf8,…

Adrien Parad
- 63
- 6
1
vote
3 answers
Decode JSON with Go
I have a reaction struct like this
type Reaction struct {
Id uint `json:"id" form:"id"`
ReactionType uint `json:"reactionType" form:"reactionType"`
PostId uint `json:"postId" form:"postId"`
ReactorId uint …

Mohamad Nasir
- 61
- 5
1
vote
1 answer
Decode Unicode's to Local language in Bigquery
We receive a survey Web-hook data in Bigquery. The comment in local language is captured as unicode and we do have special character in that comment.
Example
Comment in survey- "别老是晚点,现场补行李费太贵"
Comment in Bigquery data-…
1
vote
1 answer
Xcode Base64 Decode issue
I have this Base64 decoding code in place -
--
(NSString *)DecodeBase64:(NSString *)Value; {
//Return the decoded Base64 string. string must be multiple of 4 chars in length
NSUInteger paddedLength = Value.length + (4 - (Value.length %…

Rob Slater
- 225
- 1
- 6
1
vote
1 answer
PHP JSON decode without foreach
how can I get the "avatarmedium" from i json without a foreach Loop?
Thats my current Code:
$json = '{
"response": {
"players": [
{
"steamid": "76561198019025166",
"avatarmedium":…

Maro
- 55
- 1
- 7
1
vote
1 answer
How to decode Firebase JSON with autoID
I am trying to adapt Swift 4 Decodable to the JSON created by my Firebase database:
{
"sections" : {
"-KxVQoo6ElOVhoFliQ5s" : {
"details" : "Residents",
"row" : "0",
"section" : "0",
"task" : "Do evals"
},
…

OlderCoder
- 11
- 1
1
vote
1 answer
Swift 4 - JSON parsing with Codable protocol (nested data)
I am trying to update myself and use modern and recent Swift 4 features.
That is why I am training with the Codable protocol in order to parse JSON and directly map my model object.
First of all, I did some research and self learning.
This article…
user7219266
1
vote
1 answer
PHP Json decode object exist
how can i get all "steamids" from Players where "gameid" exist and have the value "730"?
it Shows:
NOTICE Undefined property: stdClass::$gameid on line number 31
because "gameid" doesnt exist in every element
Code:
$players =…

Maro
- 55
- 1
- 7
1
vote
1 answer
Convert / decode numpy array of byte8 characters to string
I'm having trouble converting a numpy array of type bytes8 into a string. I guess I need to decode the data but I'm not sure how to do this for a numpy array. The array is of size [1200,8] but the data is repeated along the largest dimension so I…

InitialConditions
- 97
- 11