Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9271845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:43:43+00:00 2026-06-18T15:43:43+00:00

I have to decode a string. This one comes from Flash AS3 and I

  • 0

I have to decode a string. This one comes from Flash AS3 and I want to decode it in Python. I don’t have any problems with PHP, but I cannot decode the following string with Python 2.6 ‘base64.b64decode’.

f3hvQgQaBFp9IC4NQhYZQiAhNhxBAkwIJC0pDR8fBl12ZjkWXwMEWn57bU0dGgBfcWdsTwAbGB4xLmVLAh0FXXd5a0gGHQRWdy5iQANNVAl/KmNLAhUBXyV8PkFQHwNefntjGgpPU18nK21OURtSC35wPE4FHFUJdi4/TlMUVFwlez9JVxtVDH0TB0IGHAc%Pr

Python returns “TypeError: Incorrect Padding”. It seems to have superfious characters at the end of the string (from the ‘%’). But why Python base64 library do not manage this?

Thank you for your answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:43:45+00:00Added an answer on June 18, 2026 at 3:43 pm

    It seems to me you are not feeding a valid string to the function – it tells you so. You can’t expect a function to “guess” what you wanted, and base its response on that. You have to use a valid parameter, or the function doesn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a string that comes from XML node, and I need to
I have a string, more specifically, this one: a:16:{s:9:pseudonym;O:16:SimpleXMLElement:0:{}s:14:parallel_title;O:16:SimpleXMLElement:0:{}s:9:title_var;O:16:SimpleXMLElement:0:{}s:6:series;O:16:SimpleXMLElement:0:{}s:9:vol_title;O:16:SimpleXMLElement:0:{}s:9:reference;O:16:SimpleXMLElement:0:{}s:10:bound_with;O:16:SimpleXMLElement:0:{}s:15:general_remarks;O:16:SimpleXMLElement:0:{}s:6:copies;O:16:SimpleXMLElement:1:{i:0;s:1:1;}s:11:remarks_BPH;O:16:SimpleXMLElement:0:{}s:3:ICN;O:16:SimpleXMLElement:1:{i:0;s:4:neen;}s:10:provenance;O:16:SimpleXMLElement:0:{}s:7:binding;O:16:SimpleXMLElement:0:{}s:10:size_hxwxd;O:16:SimpleXMLElement:0:{}s:6:BookID;O:16:SimpleXMLElement:1:{i:0;s:4:6271;}s:5:repro;O:16:SimpleXMLElement:0:{}} Is it possible to parse
I have one string which is base 32 bit decoded now I want to
I have a function that takes a string-like argument. I want to decide if
I have this code: $coder = JSON::XS->new->utf8->pretty->allow_nonref; %perl = $coder->decode ($json); When I write
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
I have a HTML string in ISO-8859-1 encoding. I need to pass this string
I have the fallowing string in php: $code = [[],[Mon,01, 1.7, 8,3, 96,33, 29.01.2013],[Tue,01,
I have a hex-string made from a unicode string with that function: def toHex(s):
I want to decode HTML string and store it in NSString. following is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.