97 questions
0
votes
1
answer
190
views
RLE -> Mask for semantic segmentation | Azure Semantic Segmentation (Preview)
I used Azure Data Labelling to prepare my Semantic Segmentation (Preview) Dataset and export it from Azure into my Local System. Now I have images in images folder and Labels in Json file.
I'm trying ...
0
votes
0
answers
255
views
how to decode and decrypt a string in swift
From a server, I get an encrypted and base 64 encoded string, these are criteria used to encrypt it.
aes 256 cbc encryption system with hexadecimal digest
the key is hash sha 512 of a phone number
...
0
votes
0
answers
76
views
SQL French char encoding issue
I have an address with French chars - Vétéran. In table column it is read as Vétéran when using SMS select. The server language is English.
When I copied Vétéran to Word, it remained the same. I ...
0
votes
1
answer
737
views
Decode data as [String: String] while value can have json in it
So I have JSON, which has string keys and values which can be either strings or custom JSON, when I put json there (even if I put it in quotes) JSONDecoder throws an error "The given data was not ...
-1
votes
1
answer
390
views
Decoding HTML data in swift
I am implementing showing html data received from server in web view in swift ... I ma getting html data from server in following format (just part of data string)
I want to convert this to proper ...
0
votes
1
answer
387
views
Gmail 'full' body base64url encoding unexpected output
When trying to decode a message from Gmail using official GoogleAPIs, I am running into unexpected issues when trying to decode the body data from the full message get request.
The code used to ...
1
vote
1
answer
2k
views
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 ...
6
votes
1
answer
32k
views
Unhandled Exception: FormatException: Unexpected extension byte (at offset 5)
The Json response has an gzip encoded string.
var dataList = [
{"Data": "compressedata"},
{"Data": "compressedData"}
];
I tried so many methods to ...
-1
votes
1
answer
173
views
How to decode "\/" in strings
I am parsing a source that frequently contains / encoded as \/. For example, https:// is encoded as https:\/\/.
What is the name of this encoding? It appreas to be used when sending json in HTML. It ...
0
votes
1
answer
112
views
Issue in decoding in node js
I have a requirement where I need to encode data in "iso-8859-1" and then convert back it to readable string in node js.
In .Net env:
string encodedData = "VABpAG0AZQAgAHMAZQByAGUAaQBzAA==";
...
0
votes
1
answer
803
views
Difficulty reading text with pytesseract
I need to read the highest temperature on thermographic images, as shown below:
IR_1544_INFRA.jpg
IR_1546_INFRA.jpg
IR_1560_INFRA.jpg
IR_1564_INFRA.jpg
I used the following code, this was the ...
0
votes
1
answer
582
views
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 ...
2
votes
1
answer
5k
views
Base64 encoding/decoding not working with special characters in Java 1.6
I am using JDK 1.6 and facing issue while trying to encoding/decoding French words. My code is under:
String setText = "Vos factures impayées Internet sont";
String encodedText= Base64.encode(setText....
1
vote
1
answer
626
views
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 ...
1
vote
1
answer
106
views
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.&...
0
votes
1
answer
971
views
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 ...
2
votes
1
answer
4k
views
String Decoding in Golang
In Ruby, I'm using the string.unpack method to decode some data. I'm migrating this code into a Golang app, however I can't find a corresponding method in the standard library?
The ruby code is: str....
-1
votes
1
answer
216
views
decodeString codefights: Program doesn't pass all tests."30/31 Output limit exceeded on test -31". Kindly support
function decodeString(s)
{
let arr = [];
let digitSum = '';
let digitSumArr = []; // for numbers before '['
let i;
//iterating string
for (i = 0; i < s.length; i++)
{
...
3
votes
0
answers
527
views
How can I determine the encoding used given the plain text string and encoded string?
We are working on exporting a bunch of data from a 3rd party system and bringing it into our own. The only good way to do this is to use the SQL database. We have had a good amount of success finding ...
3
votes
1
answer
2k
views
How do I get audio/video from base64 encoded string?
In JSON file, I am receiving the base64 encoded string. It may contain image file, pdf file, doc or text file or audio/video file.
How can I show/play audio/video in iOS from base64 encoded string?
...
1
vote
1
answer
2k
views
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 ...
0
votes
2
answers
3k
views
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 ...
0
votes
1
answer
306
views
Decode AES 256?
i have this method for decoding:
-(NSString *)decrypt:(NSString *)encryptedTextValue withSecret:(NSString*)secret
{
NSData *encryptedData = [NSData base64DataFromString:encryptedTextValue];
...
-1
votes
1
answer
1k
views
Python decoding a string from a log file
I am writing a Python to process a log file. The program decrypts a base64 encoded string between two patterns. Whenever I run the code I get "Incorrect Padding Error"
Here is my code
import ...
0
votes
2
answers
3k
views
Decoding multiple encoded string
How do I decode this to get the result below?
/browse_ajax?action_continuation=1\u0026amp;continuation=4qmFsgJAEhhVQ2ZXdHFQeUJNR183aTMzT2VlTnNaWncaJEVnWjJhV1JsYjNNZ0FEZ0JZQUZxQUhvQk03Z0JBQSUzRCUzRA%...