Questions tagged [string-decoding]
96 questions
1
vote
1 answer
How to decode a base64-encoded email subject string using a Procmail recipe?
This is a simple Procmail recipe to filter emails depending on subject:
:0
* ^Subject: .*Content to filter
$HOME/Maildir/.INBOX.My_filtered_folder/
The above very simple Procmail recipe works without problems. But some emails have Base64 encoded…

Monty
- 11
- 3
1
vote
1 answer
putting german text in hbase table
I am trying to update a table by adding a german string by doing the following:
put'table:data_validation_test','58e1f4200f23e474ca2d7f3a','urlbody:data','Auslöser'
What I get on scanning this table is this:
scan 'table:data_validation_test'
ROW …

Ravi Ranjan
- 353
- 1
- 6
- 22
1
vote
1 answer
How to decode a HTML-file when open it from a local file instead of the web?
I try to write a HTML-parser but during testing I do not want to query the website every time so I saved the website as HTML-file locally.
For reading I use:
urltext = urllib.request.urlopen(urlfile).read().decode("utf-8")
from the website directly…

Kev
- 557
- 1
- 7
- 26
1
vote
2 answers
Unable to decode base64 string in java
I am trying to decode base64 string. But somehow it is not decoding complete string. Below is base64…

Awadhendra
- 355
- 2
- 10
- 34
1
vote
1 answer
Why does this text decoded in 2 different ways not match in GWT?
I've been trying to track down why my Russian translations are not appearing correctly in the GWT version of my game. I've narrowed it down to something going wrong with the decoding of the file. This code works correctly outside of the GWT…

Will Calderwood
- 4,393
- 3
- 39
- 64
1
vote
1 answer
Issues while encoding, decoding arabic language in terminal
In my script Cosine similarity need first, to convert an Arabic string into a vector before perform Cosine similarity
on terminal under Linux --> problem while convert Arabic string to vector producing Arabic as:
[u'\u0627\u0644\u0634\u0645\u0633…

Eman Naguib
- 23
- 5
1
vote
3 answers
Convert a string (representing UTF-8 hex) to string
I have a string in UTF-8 hex like this:
s =…

patrickdavey
- 1,966
- 2
- 18
- 25
1
vote
0 answers
Issues with UTF8 text decoding
I’m working on extracting the content of the title tag from webpages. The problem is that some content needs UTF8 decoding to correctly be displayed and other need it twice! An example of this is the title of (http://nestekaltimontie.com/) & the…

Nan
- 11
- 1
1
vote
2 answers
How to get a string value similar to the one that is parsed in the TextVisualizer in Visual Studio
It's maybe a selly question.. but I'm a bit confused and having a problem in the decoding..
The question is what's the different between this string:
ndE9a8MwEIDhv5JNky1Z/ogrbNNCFkPaoS1dy9lRUoOlc3xn6M vnGQIHToU
hOBAvA…

Homam
- 23,263
- 32
- 111
- 187
1
vote
1 answer
Fixing language decoding issues in midi files
I have a midi file of a Chinese song with information given inside the name of tracks. I use a library called MIDI.js to parse it and the output looks like this
±¡²`»¡¸Ü¥¼´¿Á¿
Where should I look to find the correct encoding / decoding?

user2191332
- 1,059
- 3
- 17
- 24
1
vote
0 answers
AS3 charset charset detecting library
Is there any library to detect charset of the string?
Here is how i'm converting strings
var b:ByteArray = new ByteArray();
b.writeMultiByte(str,to_charset);
return b.toString();
The problem starts when str is already windows-1251 and to_charset is…

Somebody
- 9,316
- 26
- 94
- 142
1
vote
2 answers
Comprehensive character replacement module in python for non-unicode and non-ascii for HTML
Is there a comprehensive character replacement module for python that finds all non-ascii or non-unicode characters in a string and replaces them with ascii or unicode equivilents? This comfort with the "ignore" argument during encoding or decoding…

x - y
- 125
- 2
- 6
1
vote
1 answer
Strangely encoded url
Background:
I have been troubled by the following problem for the last week.
Normally webpages encrypt urls using base64, so that http://stackoverflow.com becomes aHR0cDovL3N0YWNrb3ZlcmZsb3cuY29t and it's used like…

Mike
- 261
- 2
- 6
1
vote
2 answers
Decoding passwords or some more sophisticated way to send passwords for users?
I have a group of users. Everyone of them has the same username-password combination. There is the data encrypted (see code below) in my db. The question is, what is the best and the most secure way to handle the whole use case? I just want to send…

Sami
- 2,311
- 13
- 46
- 80
0
votes
1 answer
python utf-8 decoding error of HTML
Im trying to use urllib2 to download a webpage and save it to a MySQL database.
like this :
result_text = result.read()
result_text = result_text.decode('utf-8')
however I get this error :
Data: 'utf8' codec can't decode byte 0x88
Now, the HTML…

WeaselFox
- 7,220
- 8
- 44
- 75