Decoding a base64 / base64url from a url in the browser - encoding

First of all I would like to mention that I have no prior experience with this, so please bare over if the question sounds stupid.
I have a URL that creates some sort of query, but it's encoded as either base64 or base64url. I'm not sure which one of them.
The url itself looks like the following: https://example.com/req.php?req=0-0S97kzhT60089CUZpOmkXlD7sCrhHI8BJ6fAw2IFucwKe2ggnNAZ9iuaWEoK7ziIRnau3to3KmtrJGBW8ubXIPltFm-W8FTcgriA==&rnd=50000.794176&c=50000
From my basic web understanding I assume that & is a new parameter in the url.
I've tried various base64 / base64url tools online to help me decode it, but have been unsuccessful so far. I assume this is the encoded part? 0-0S97kzhT60089CUZpOmkXlD7sCrhHI8BJ6fAw2IFucwKe2ggnNAZ9iuaWEoK7ziIRnau3to3KmtrJGBW8ubXIPltFm-W8FTcgriA==&rnd=50000.794176&c=50000
The various tools i've tried returns that it's not UTF-8 or just rubbish text
Can anyone help me with various resources I should look into or share their knowledge.

Related

Progress URL encoding

What's the best way to encode a URL in progress. I want to build an encoded URL and don't want to write my own encoding function. Is there a command that can be run or a function that someone else already wrote?
www.abc.com/the one/
to
www.abc/the%20one/
See: http://www.w3schools.com/tags/ref_urlencode.asp for the list of things that need to be encoded
There is an article on the Progress website, which Google found me with very little effort...
http://knowledgebase.progress.com/articles/Article/000042261
Note the disclaimers at the top of the article.

How do I decode a .pwi file?

I want to decode a file that has the extension .pwi but I am not having any luck at all. It looks like white squares and other characters.. An example is down below. I really want to decode it, I have searched Google now for hours but still can't find the solution.. Decoding it to Hex, MD5 or whatever Google says I have to do doesn't work. I know that it's from my notes on my old Windows phone. But I don't have one anymore.

how to decode url for unicode font

I have been developing an asp application. I want to use response.charset that uses "UTF-8". I try to encode a unicode string by using server.urlencode. It is showed like this "%e3%81%a4%e3%82%". I got a problem this. I don't know how to decode url. Please, help me
This may help you, there is a tutorial and a tool that can decode the encoded URLs you can check it out here

UTF8 encoding problem, same results work fine in wordpress

I have a wordpress installation that clients can edit, all characters display ok. On the main homepage I query the same database for the same title and post content, but it doesn't display correctly - just a question mark
I have tried sending the utf8 headers manually, through htaccess and through meta tags. I have used SET name UTF8 (which turns the characters into the diamond symbol with a questionmark inside).
I genuinely cant figure out what it could be now and I really need these characters to display correctly.
Heres the homepage, you can see in the Sounddhism 6 preview that there are lots of question marks, if you click on it you will see what they are meant to look like
http://nottingham.subverb.net
I have passed it through the validator and it gives me this error:
Sorry, I am unable to validate this document because on line 373 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.
The error was: utf8 "\xA0" does not map to Unicode
Which, i appreciate is supposed to help me, but I don't know what to do about it. Especially since that line, the letter generating the error is supposed to be a space and is AFTER the offending question marks.
Can anyone help?
Compare the encoding of both the back-end scripts in Wordpress and also your homepage script. If you're using IE, right-click the page and check the encoding. Sometimes it's set to "Auto-detect" and IE will often detect a different encoding for different pages, causing strange issues like this.
If you're not using IE, try using a tool like Fiddler to see exactly what encoding (and what bytes are being sent back and forth both in the back-end and your homepage script.
If forcing UTF-8 on your homepage script doesn't work, I would guess that the back-end is not using UTF-8.

Get Image from Byte Aarray

Hope You all are fine and also in one of your best of moods!!
Hope You all are Enjoying iPhone development.
I herewith one issue that i am not able to solve, may be i don't know the depth concept of iPhone.
So Its my humble requet to you to guide me or suggest or share your ideas.
I do find an issue with getting an image from Bytes array.
I am calling a webservice which returns an image in form of Bytes Array as response.
I have Converted this bytes array in to form of NSData, Now i have NSData, But When i Try to get an image from this NSData, It shows nil.
I Did lots of R&D and Find one suggestion to use base64 encoder, But unfortunately because of not proper guidance I was not able to Implement that.
I was also suggested to use OPenSSL Library for base64 from url http://www.cocoadev.com/index.pl?BaseSixtyFour
But again i was not able to include #include #include these two files. as in Newer Version of SDK 3.X family Apple has depreciated those (as i guess).
So Now i need help from you guys. kindly help me if you have solution or if you know the steps to solve these.
Looking Forwards.
Regards,
Arun Thakkar
Using OpenSSL on the iPhone seems like a very heavy-weight solution if all you need is Base64 encoding/decoding. Look at this post for how to use a category for NSData to add base64 encoding/decoding. You want the second section of this blog post as the first deals with OpenSSL :)
base64-encoding-options-on-mac-and-iphone