Questions tagged [string-decoding]

96 questions
-1
votes
1 answer

Decode ASCII string in Python 3

Got a string in ASCII (with only ASCII value ranges for A-Z, a-z, and " "), want to decode it. ex. "781059910132" cooresponds to "Nice " Is there an easy way to do this in Python 3?
SS'
  • 819
  • 1
  • 8
  • 18
-1
votes
1 answer

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++) { if (!isNaN(s[i])) { …
-1
votes
1 answer

UTF-8 decoding error in PHP

My database value is École Polytechnique Fédérale de Lausanne. I cannot convert to html characters. I tried to convert using following method, echo html_entity_decode(École Polytechnique Fédérale de Lausanne'); echo…
Lucky13
  • 11,393
  • 7
  • 25
  • 36
-1
votes
1 answer

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 base64 import re def…
mahbuhsj
  • 33
  • 1
  • 6
-1
votes
1 answer

String encoding issue with pyodbc's returned data

On making query with PyODBC, I am getting my table data as: u'\u3836\u3431\u3132\u3230\u3030' The actual content in my database column is as: 6814210200 When I explicitly encode pyodbc's returned value to utf-16, I get the content as (closest I…
Moinuddin Quadri
  • 46,825
  • 13
  • 96
  • 126
-4
votes
1 answer

Unable decrypt URL encoded Base64 String

Hello thank you for reading; I've tried to decrypt thise Base64 string in anyway possible. Also tried searching Stackoverflow and tried other methods. Every response it's just jibberish. v6kEwElTQI%2fNlQc87zM7Od2%2fsaAghvSbCVyYaJRTf4U%3d Hope…
1 2 3 4 5 6
7