Questions tagged [string-decoding]
96 questions
0
votes
1 answer
Convert string representation of a hexadecimal byte array to a string with non ascii characters in Java
I have a String being sent in the request payload by a client as:
"[0xc3][0xa1][0xc3][0xa9][0xc3][0xad][0xc3][0xb3][0xc3][0xba][0xc3][0x81][0xc3][0x89][0xc3][0x8d][0xc3][0x93][0xc3][0x9a]Departms"
I want to get a String which is…

A.J
- 9
- 2
0
votes
1 answer
How to convert a string to binary utf-16 and Binary to String in java?
my project requires converting Arabic text to binary , then convert binary to text (reverse process).
I used this code,but I notice that when I use utf-16 to convert string to binary, then read this binary to convert it back to the original UTF-16…

Norah A
- 11
- 4
0
votes
1 answer
Decoding data from serial port (string with integers)
I'm sending string from Arduino to PC using serial communication. Format of message includes char, value and space (separating data). Example message: "H123 V2 L63 V2413 I23 CRC2a".
I have problem with decoding this message in Qt because when I use…

albert828
- 50
- 6
0
votes
2 answers
Decode a ASCII string with Python 2.7.10
I'm fairly new to Python so I'm probably still making a lot of rookie mistakes.
I was comparing two seemingly matching strings in Python, but it always returned false. When I checked the representation of the object, I found that one of the strings…

Bastiaan Andriessen
- 67
- 6
0
votes
0 answers
How to decode "Сверд..." data format (name of region in Russia) in .csv file to English in R?
I am working on a project on Machine learning. When I download the .csv file, some of the features have values in an unknown format. Something like СвердловÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°Ñть and Личные вещÐ. These represent the names of regions…

Nikhil
- 37
- 7
0
votes
1 answer
Python Decoding and Encoding, List Element utf-8
just another question about encoding in python i think. I have this programm:
regex = re.compile(ur'\b[sw]\w+', flags= re.U | re.I)
ergebnisliste = []
for line in fileobject:
print str(line)
erg = regex.findall(line)
ergebnisliste =…

Joschi
- 3
- 4
0
votes
2 answers
base 64 decoding in shell scripting
For Example I have a file like as follows .
A,Y29tLz9hPTQ2JmM9NDQzNzgmczE9Q0,123
B,FJNLTA2MjQyMDE3LVAmczI9ODQ3MDA,321
I want to print field1,field2(by base 64 decoding),field3
Output Required ::
A,result of base 64 decode,123
B,result of…

Jyothi Tulasi
- 19
- 1
- 4
0
votes
1 answer
Decode AES 256?
i have this method for decoding:
-(NSString *)decrypt:(NSString *)encryptedTextValue withSecret:(NSString*)secret
{
NSData *encryptedData = [NSData base64DataFromString:encryptedTextValue];
NSData *decryptedData = [encryptedData…

David
- 857
- 1
- 11
- 25
0
votes
3 answers
How to decode String which contains characters like 'Total\x20Value' my actual value is 'Total Value'
How to decode String which contains characters like 'Total\x20Value' my actual value is 'Total Value'
Using javascript it is getting decoded by the browser like:
if I write on browser console:
var a = 'Total\x20Value';
then I print a then it will…

Krishna Verma
- 814
- 2
- 8
- 23
0
votes
2 answers
0
votes
1 answer
Time optimize C++ function to find number of decoding possibilities
This is an interview practice problem from CodeFights. I have a solution that's working except for the fact that it takes too long to run for very large inputs.
Problem Description (from the link above)
A top secret message containing uppercase…

krkaudio
- 43
- 7
0
votes
1 answer
Decoding string in objc as in Java
I have a string "ZB3NNxAMNB/x6JpAryCd0g==", which is decoded in java and stores in byte[]. But I am not sure that based on which characterset the decoding is happening in Java.
public byte[] decode(String src) {
return…

sree_iphonedev
- 3,514
- 6
- 31
- 50
0
votes
1 answer
Selectively editing strings based on rules in Matlab
I am trying to develop a rules based string editing function in Matlab.
Suppose I have generated a string like the following:
myString = '/+*43/*/+34/5*2/*'
Supposed further that I wish to remove certain math operators according to a set of…

Michael Varney
- 1
- 3
0
votes
1 answer
Python 2.7 - Unable to correctly decode email subject-header line
I'm using Python 2.7, and I am trying to properly decode the subject header line of an email. The source of the email is:
Subject: =?UTF-8?B?VGkgw6ggcGlhY2l1dGEgbGEgZGVtbz8gU2NvcHJpIGFsdHJlIG4=?=
I use the function decode_header(header) from the…

Labo29
- 117
- 3
- 13
0
votes
3 answers
JSON decode string in PHP (array of arrays) Special characters
So I have this issue when converting a JSON string to a PHP array. The data is sent via HTTP POST so I'm aware there may be some decoding needed.
Could anyone lay an insight on how I would use json_decode() in PHP to convert this string to an…

Lewis Smallwood
- 84
- 1
- 11