0

I have a string which is a base64encoding of an audio file and looks like -"\/qwerty\/\/\/qwertyuiop". However, my server side developer says he just receives -"/qwerty///qwertyuiop". Which does not give the same result in decoding. So in what format do i send him that he will receive -"\/qwerty\/\/\/qwertyuiop" ? Please help.

4

2 回答 2

0

如果我理解正确,这就是您需要的:

\\/qwerty\\/\\/\\/qwertyuiop

有关转义字符的更多信息,您可以在此处阅读:Wiki

于 2013-06-26T06:50:52.583 回答
0

我认为您想要的是从您的 URL中转义“\” 。您可以使用BackSlash Escape Character

更新 :

您可以使用这些链接中的答案:

  1. URL 编码一个 NSString
  2. 如何在 iphone-sdk 上进行 base64 编码?

还可以看看这个美丽的链接:HTML URL 编码参考归功于 HotLicks

于 2013-06-26T09:30:03.050 回答