Uppercase lowercase to convert each other

Source: Internet
Author: User
Uppercase lowercase convert to each other
PHP base64 are now encoded differently on the client and server side
For example, the server side is agvsbg8=
So the client is agvsbg8= . How can I convert case?
What I do now is to traverse the ASCII code of each byte, determine the size, and then decide to add minus 32.
------Solution--------------------
 

------Solution--------------------
This post was last edited by xuzuning on 2012-11-21 11:18:53

A binary inside code is expressed as 000001
A binary inside code is expressed as 100001
Space binary inside code expressed as 100000

So the letter and the space are different or after the exact change case

How clever is the creator of the visible ASCII code!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.