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
Express + MongoDB - req.query to object
I try to filter my outcome from MongoDB. I'm using an Express. Here are my console.logs:
req.query.filters from URL: http://localhost:3000/test?filters=%7Bpersonalbest%3A%7B%27%24gt%27%3A%27170%27%7D%2Cname%3A%7B%27%24gt%27%3A%27M%27%7D%7D
an…

Michał Bednarz
- 35
- 5
1
vote
1 answer
UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 2370: ordinal not in range(128)
I'm writing a script in Python 3.5.3 that takes username/password combos from a file and writes them to another file. The script was written on a machine with Windows 10 and worked. However, when I tried to run the script on a MacBook running…

Conner Boehm
- 13
- 7
1
vote
1 answer
JSON_DECODE() not decoding all results from Google Places API response
Here is what I have so far. I see 9 results when I visit the URL and after using curl it still displays the 9 results after being printed out. When I used the json_decode function it only created 3 results. I have gone everywhere and havent found…

Carlitos
- 419
- 4
- 20
1
vote
1 answer
Is this some form of encrypted data?
Is this some kind of encrypted text. If so what is the message? What algorithm do they use to encrypt…

rgksugan
- 3,521
- 12
- 45
- 53
1
vote
1 answer
How to decode unwell-formed hex string of emoji character like "`1f1e81f1f3`"?
Suppose there's a hex string of emoji character like "1f1e81f1f3", it's unwell-formed hex string of code point of an emoji character, and it's supposed to be two string like 1f1e8 1f1f3
I'm using org.apache.commons.codec.binary.Hex to decode hex…

LiuYan 刘研
- 1,614
- 1
- 16
- 29
1
vote
1 answer
How can I decode a RAW/WAV file into a list of numbers?
How can I decode a RAW/WAV file into a list of numbers ?
I need to do since I need to create a spectrogram/waveform from the audio file.
I thought I could use the list of numbers and create an image using a charting application (e.g. gnuplot)

Prakash Raman
- 13,319
- 27
- 82
- 132
1
vote
3 answers
Convert json single element arrays to strings
In Go I have to parse this json:
{
"response": [
{
"message": [
"hello world"
],
"misc": [
{
"timestamp": [
"2017-06-28T05:52:39.347Z"
],
"server": [
…

Henry
- 21
- 4
1
vote
0 answers
DecodedURL - pass values from html form to the string
I have a below encoded string that i have to pass as decodeduri in code... it woking fine.... now as a next step... I have pass the dynamic value from my html to dynamicvariable highlighted.
please note...I am enocing and converting to decode is…

user7896515
- 41
- 9
1
vote
3 answers
I'm getting PHP undefined index error when I try to use values from decoded JSON
if (isset($_POST['myData'])) {
$json = json_decode($_POST['myData'], true);
global $phone, $name, $id_proj;
$arr = array();
foreach ($json as $item => $k) {
$id_proj = $k['movieid'];
$name = $k['name'];
$phone…

spopic
- 92
- 11
1
vote
2 answers
Converting string-array to an array of strings
I am struggling with converting a string into an array:
["Пятницкое шоссе","Митино","Волоколамская","Планерная","Сходненская"]
and I want to convert it into an array of values inside quotes "".
Tried (un)serialize(), parse_str(). They don't cope…

Denis Evseev
- 1,660
- 1
- 18
- 33
1
vote
1 answer
Convert hexadecimal string to Base32 in java
I am using google authenticator for TOTP generation and it uses a base32 encoded string to do so.
The secret that I have is Hex encoded and I need to convert it to Base32 before I can use it.
The following site does it perfectly, but I need it in…

user2013919
- 43
- 1
- 5
1
vote
1 answer
URL decode unicode characters (%EF%AC%81 need "fi" as two letters not unicode symbol)
I am using the decodeURIComponent() function on a string containing the following:
"%EF%AC%81"
Which gives me "fi" when decoded, which is what I want. But (please forgive incorrect terminology, I'm not sure about this stuff), it doesn't seem to…

user7856951
- 503
- 1
- 4
- 15
1
vote
0 answers
Getting error during decoding
I am using the below code for decoding:-
for tweet in posfile:
tweet = tweet.decode('utf-8')
tweet = clean(tweet)
train_tweets.append(tweet)
count = count + 1
While using the above code. I am getting the below…

Shirohige
- 243
- 1
- 3
- 14
1
vote
2 answers
Oracle SQL: How to convert one column of Select to rows
I am new to Oracle and am looking for a way to convert 1 column in a Select to rows.
My first approach was using Listagg which does exactly what I want but the character limit for this is not enough for my case.
As an alternative I would like to…

keewee279
- 1,656
- 5
- 28
- 60
1
vote
0 answers
Is opencv imdecode a really decoding function?
I use python to read an image from url and save it, by using opencv imdecode:
read url demo
import numpy as np
import urllib
import cv2
def url_to_image(url):
resp = urllib.urlopen(url)
data = bytearray(resp.read())
image = np.asarray(data,…

David Ding
- 680
- 3
- 9
- 19