算神的博客

Previous Post
Next Post

VB.Net中与PHP的base64_encode等效函数

算神 八月 10, 2011 编程相关
share
Facebook Twitter Google + LinkedIn Pinterest Email Share...

PHP:

$res='算神'
echo base64_encode($res);

VB.Net的写法:

Public Function Base64Encode(str As String) As String
	Return Convert.ToBase64String(Encoding.UTF8.GetBytes(str))
End Function

Dim res="算神"
Response.Write(Base64Encode(res))
VB.Net, PHP, base64_encode, 等效, 函数

相关文章

  • VB.Net中与PHP的base64_encode等效函数

    PHP: $res='算神' echo base64_encode($res); VB.Net的写法: Public Function Base64Encode(str As Stri...

Saving the comment

添加评论

取消对该留言的回复

  • 首页
  • 归档
  • 联系
  • 登录
© 2021 Designed by BlogEngine 备案号:桂ICP备15001335号