Questions tagged [string-decoding]
96 questions
2
votes
1 answer
How to Decode RSA public key(in java) from a text view in Android studio
I am trying to create a RSA text encryption app for android so I create three fragments Generate,Encrypt,Decrypt in which i generated publickey,privatekey in generate fragment then encoded it with BASE64 and displayed it in text view(now user1…

vootkuru Sujay Reddy
- 23
- 1
- 5
2
votes
1 answer
Changing Character Value of Active Cell in Excel VBA
I am trying to write a VBA macro that takes a single letter of the alphabet from the active cell and replaces it with a letter five positions ahead (i.e. "a" becomes "f", "x" becomes "c"). This is to decode a file of encrypted text where all letters…

EdC
- 25
- 5
2
votes
1 answer
Cannot decode Base64 string swift
I'm trying to decode the following Base64 encoded string :…

Alk
- 5,215
- 8
- 47
- 116
2
votes
1 answer
Python decoding fails at Wikipedia article?
I'm still writing a program which uses data from Wikipedia pages.
However, when I execute the code below, I get this exception:
UnicodeEncodeError: 'charmap' codec can't encode characters in position 30-31: character maps to
Here is the…

gowner
- 327
- 1
- 4
- 11
2
votes
0 answers
Sending Javascript code to client-side is not escaped correctly
I'm struggling with an encoding-problem in a small system I'm constructing.
In an HTML, this script is loaded
and normally I can't access the HTML so everything has to be done inside…

Anders
- 251
- 3
- 13
1
vote
1 answer
Given a string which contains only ones and zeros, return the number of substrings with ones more than zeros
Suppose that S is a string containing only 0 and 1. I would like to count the number of not null substrings of S in which the number of 0s is less than the number of 1s.
Using brute-force method given below we can have an algorithm that solves this…

Adeeb HS
- 139
- 7
1
vote
2 answers
What is the best way to convert all non display characters in a pandas dataframe?
I am loading data into a pandas dataframe from an Excel sheet and there are a lot of non display characters in many columns that I want to convert.
The most prevalent is an apostrophe being used in a contraction ; e.g. doesn't which comes out as…

Justin
- 11
- 1
1
vote
1 answer
Defining Empty String in Avro Schema
I currently having an issue with the Avro JsonDecoder. Avro is used in Version 1.8.2. The .avsc file is defined like:
{
"type": "record",
"namespace": "my.namespace",
"name": "recordName",
"fields": [
{
"name": "Code",
"type":…

fx88
- 43
- 1
- 8
1
vote
1 answer
How to decode unknown string format in java
I'm getting xml file which I need to handle in my SpringBoot Rest controller. But I have problem with parsing cyrillic chars. In my controller these symbols look like this: d�鲲㮮弯.
I was trying to decode using
new…

RomanK
- 47
- 5
1
vote
0 answers
Decoding data from WIN10 ssh server (response of paramiko recv())
I am using paramiko to connect to a win10 server (client is Linux) and for most parts communication is OK.
But when i read the response to a command (via recv()) , i see some strange data.
Example: this is the response to "hostname" and it should…

psb
- 67
- 1
- 6
1
vote
1 answer
Ruby: How to decode strings which are partially encoded or fully encoded?
I am getting encoded strings while parsing text files. I have no idea on how to decode them to english or it's original language.
"info@cloudag.com"
is the encoded string and needs to have it decoded.
I want to…

kotu b
- 331
- 2
- 12
1
vote
1 answer
How to read images and labels from the infimnist / mnist8m dataset?
Using the the program at this link, https://leon.bottou.org/projects/infimnist, I generated some data.
As far as i can tell it is in some sort of binary format:
b"\x00\x00\x08\x01\x00\x00'\x10\x07\x02\x01\x00\x04\x01\x04\t\x05 ...
I need to extract…
user10695266
1
vote
1 answer
How to decode a string like "string\x27s" in c#?
I have a c# app that sometimes has to work with strings like:
"example\x27s string"
How do I decode that? I know 27 is the ascii code for a single quote ', but UrlDecode() wont work on that string.
Should I replace the \x value with % and then use…

prekam
- 23
- 3
1
vote
1 answer
Error while decoding base64 string to UIImage
I am trying to decode base64 String to UIImage in Swift 4.2. I have tried almost every solution on stackoverflow but it's not working.
I have tried converting the string with NSData, it didn't work. Now I am converting the string to Data and…

Hashir Saeed
- 195
- 1
- 10
1
vote
1 answer
java method for decoding via unicode_escape
Python has a nice function to decode hex and unicode characters in Strings, like so:
print "123\x20Fake\x20St\u002e".decode('unicode_escape')
Will print:
123 Fake St.
Is there anything similar in java, or is this something that has to be handled…

javamonkey79
- 17,443
- 36
- 114
- 172