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
What is the encoding method in this trz file, and how to decode it
In the following xml file, what is the coding method for the data field. The string is "3ATcBNwE3ATcBA=="
How to decode it?
Thank you very…

Xinyao Liu
- 11
- 2
1
vote
1 answer
PL/SQL AVG Function with VS2008 causing "Arithmetic operation resulted in an overflow"
I'm sure I'm overlooking something simple here, but anyway - I'm trying to build a PL/SQL procedure which implements AVG via a decode function, see below. I keep getting an arithmetic overflow error but can't figure out what needs changing to hold…

Bob
- 327
- 4
- 13
1
vote
1 answer
How to decode Ascii code in a Character in PHP
I got the string in this format
solr/?key=color&facet=Blue%26keyword%3Dwoo
However, I want to get it in this format
solr/?key=color&facet=Blue&keyword=woo

Ahmad Murtaza
- 105
- 6
1
vote
1 answer
PHP: how to target base64 encoded messages?
I have raw encoded base64 emails that I would like to decode. However on the raw email data, there is 3 sections to it.
The first section is HEADERS.
The second section is HTML content / tags.
The third section is the encoded base64.
I can manually…

Shawn
- 1,175
- 2
- 11
- 20
1
vote
2 answers
How to handle Japanese characters in HTML , PHP & MySQL
I have written the following code in order to read content from an Excel file that contains Japanese characters and display on the web page:

FreeKrishna
- 1,833
- 2
- 12
- 21
1
vote
1 answer
struts html character encoding and decoding
My Tomcat server.xml and web.xml and jsp page encoding have been set to "UTF-8".
When html form post a special characters such as Ď, then java code uses StringEscapeUtils.unescapeHtml4(str) on purposely to save this special character Ď in the db.…

Windy
- 11
- 5
1
vote
1 answer
PHP Symfony 3 - POST variables unavailable in controller
I am trying to consume a JSON string built with the JS function JSON.stringify(objects). On my working local version, it is working, but on the server it raises the following error:
invalid argument supplied for foreach
After some investigations,…

user2316991
- 11
- 5
1
vote
0 answers
(PHP) Insert a base64_decoded string to an image column sql server
I have a problem when adding a base64 decoded string to a database, it says incorrect syntax.. heres the thing
First I have the $image string and decode it using base64_decode function
$image = '/9j/4AAQSkZJRgABAQAAAQABAAD/';
$decoded =…

Ojrzsr
- 11
- 3
1
vote
1 answer
Read JSON values from URL via PHP
i have url with this simple JSON {"result":true,"data":[{"Position":"135"}]}
I tried to read it with this:
$json = file_get_contents('https://...link/here..');
$obj = json_decode($json);
echo $obj->result[1]->data->Position;
but it not works. Where…

Powering
- 39
- 1
- 4
1
vote
1 answer
SHA1 Hash in BitTorrent is not text
I am learning how the bitTorrent and Bencoded dictionary of bitTorrent. But I don't understand how the pieces are encoded in SHA-1 in the torrent metainfo file. As from my knowledge SHA-1 hash is look like this…

Aslam
- 683
- 1
- 7
- 20
1
vote
1 answer
Decode dynamically received output as JWT is not working in Swift 3. "The Token is not yet valid (not before claim)"
i get token form HTTP request in JWT format. if i print and decode my output as static value it's works fine but when i tried to decode output value, it's doesn't work and show error message
The Token is not yet valid (not before claim).
here is…

Suresh Dhakal
- 21
- 1
- 7
1
vote
0 answers
Decode byte to utf-8 in Python: 'errors="ignore"' not working
Code:
def reqURL():
request = urllib.request.urlopen('https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat')
html = request.read()
html = html.decode(encoding="utf-8", errors="ignore")
…

Marcel
- 199
- 1
- 18
1
vote
4 answers
php obfuscation encrypt/decrypt
Is there a way to encode/decode a string using a secret key.
I will use base64 to give you an example what im looking for.

Val
- 17,336
- 23
- 95
- 144
1
vote
1 answer
Elm testing: how to check if a Result is an Err?
I'm writing tests for functions that return a Result. How do I test that it "is" an Err (or an Ok, for that matter) ?
\() -> Expect.equal expectedFailure (Err _)
does not work.
How does one decode a non-parameter?

Richard Haven
- 1,122
- 16
- 31
1
vote
1 answer