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
74
votes
6 answers
Decode HTML entities in android
I need to decode HTML entities, e.g. from ö to ö, and & to &.
URLEncoder.decode(str) does not do the job (convert from % notations). TextUtils has a HTMLencode, but not a HTMLdecode.
Are there any function for decoding HTML entities?

johboh
- 1,003
- 2
- 9
- 10
74
votes
6 answers
JSON stringify missing from jQuery 1.4.1?
Apparently jQuery has the ability to decode a given object or string into a JSON object. However, I have a JS object that I need to POST back to the server and I find no utility in jQuery that wraps the JSON.stringify() function. That function is…

Geuis
- 41,122
- 56
- 157
- 219
72
votes
5 answers
Using an Alias in a WHERE clause
I have a query which is meant to show me any rows in table A which have not been updated recently enough. (Each row should be updated within 2 months after "month_no".):
SELECT A.identifier
, A.name
, TO_NUMBER(DECODE( A.month_no
…

JPLemme
- 4,374
- 6
- 31
- 35
62
votes
6 answers
How to decode JSON in Flutter?
How to decode JSON in Flutter?
The question is simple, but the answer isn't, at least for me.
I have a project that uses a lot of JSON Strings. Basically, the entire communication between the app and the server is through JSON.
I have been using…

Notheros
- 2,137
- 9
- 23
- 34
59
votes
6 answers
Write Base64-encoded image to file
How to write a Base64-encoded image to file?
I have encoded an image to a string using Base64.
First, I read the file, then convert it to a byte array and then apply Base64 encoding to convert the image to a string.
Now my problem is how to decode…

DCoder
- 3,486
- 7
- 36
- 68
58
votes
8 answers
PHP replacing special characters like à->a, è->e
I have php document signup.php which save the content from form (in form.php document) to MySQL base. The problem arises when I want to reformat the input content. I want do decode UTF-8 charachters like à->a.
$first_name=$_POST['first_name'];
…

Zoran Đukić
- 767
- 1
- 6
- 12
49
votes
2 answers
What is the equivalent of JavaScript's decodeURIcomponent in PHP?
I have a string with unicode characters that I am transferring via HTTP. This string was encoded with Javascript's encodeURIcomponent(). Is there an equivalent function in php to Javascript's decodeURIComponent()?

neonant
- 832
- 3
- 16
- 25
49
votes
5 answers
Data extraction from /Filter /FlateDecode PDF stream in PHP
I can not decrypt the data from the stream like:
56 0 obj
<< /Length 1242 /Filter /FlateDecode >>
stream
x]êΩnƒ Ñ{ûbÀKq¬æ\âê¢....(whole binary is omitted)
endstream
endobj
I tried isolate the binary content (x]êΩnƒ…

Ruben Kazumov
- 3,803
- 2
- 26
- 39
43
votes
9 answers
QR code (2D barcode) coding and decoding algorithms?
Looking for free/opensource code or description of algorithms to code (simple) and decode (hard) the 2D barcode QR code.
It doesn't seem like a trivial problem, but it's so popular in Japan that there must be something already available...

Adam Davis
- 91,931
- 60
- 264
- 330
31
votes
5 answers
Loading utf-8 encoded text into MySQL table
I have a large CSV file that I am going to load it into a MySQL table. However, these data are encoded into utf-8 format, because they include some non-english characters.
I have already set the character set of the corresponding column in the table…

Hossein
- 40,161
- 57
- 141
- 175
31
votes
10 answers
How to decode base64 url in python?
For Facebook fbml Apps Facebook is sending in a signed_request parameter explained here:
http://developers.facebook.com/docs/authentication/canvas
They have given the php version of decoding this signed request:
http://pastie.org/1054154
How to do…

kevin
- 4,177
- 10
- 32
- 33
29
votes
4 answers
MP3 Decoding on Android
We're implementing a program for Android phones that plays audio streamed from the internet. Here's approximately what we do:
Download a custom encrypted format.
Decrypt to get chunks of regular MP3 data.
Decode MP3 data to raw PCM data in a…

Rob Szumlakowski
- 947
- 3
- 8
- 18
29
votes
2 answers
Android - How to decode and decompile any APK file?
I'm working on ads: my customers gave me some APK files of their Apps.
My work consists of inserting ad banners into them.
After closing the ad banners, these apps will run.
My question is: How to decode and decompile APK file?

green.android
- 731
- 3
- 7
- 22
28
votes
6 answers
Convert ' to an apostrophe in PHP
My data has many HTML entities in it (• ...etc) including '. I just want to convert it to its character equivalent.
I assumed htmlspecialchars_decode() would work, but - no luck. Thoughts?
I tried this:
echo…

Dave
- 28,833
- 23
- 113
- 183
28
votes
6 answers
Best way to handle email parsing/decoding in PHP?
Currently I'm using the PEAR library's mimeDecode.php for parsing incoming emails. It seems to have a lot of issues and fails to decode a lot of messages, so I'd like to replace it with something better.
I'm looking for something that is able to…

Sgraffite
- 1,898
- 3
- 22
- 29