base64编码/解码

编者:解决了对中文的不支持问题.
先用escape()对中文进行编码.然后再进行base64编码.
解码时,再加入unescape()对中文进行解码.


  
      base64 Encoding/Decoding
  

  

  

     

         Type in the message you want to encode in base64, or paste

         base64 encoded text into the text field, select Encode or Decode,

         and click the button!

        

                     onClick="document.base64Form.theText.value=encode64(document.base64Form.theText.value);">
                     onClick="document.base64Form.theText.value=decode64(document.base64Form.theText.value);">

     

  

 

你可能感兴趣的:(output,input,button,function,html)