How to handle special characters in a string

I have a php script creating an encoded value, for example:

m>^æ–S[J¯vÖ_ÕÚuÍÔ'´äœÈ‘ ®@M©t²#÷[Éå¹UçfU5T°äÙ"©"ˆÇVÝ] [’e™a«Ã°7#dÉJ>

Then I need to decode this in the vb.net application. The problem is that the value above can have any characters. And VB.net cannot handle this:

dim strCryptedString As String = 'm>^æ–S[J¯vÖ_ÕÚuÍÔ'´äœÈ‘ ®@M©t²#÷[Éå¹UçfU5T°äÙ"©"ˆÇVÝ] [’e™a«Ã°7#dÉJ>"

So, any suggestions on how to handle this value?

+3
source share
3 answers

Try base64encode and base64decode. That could be all you need!

+6
source

If you really need this to be written in the source code of VB.net, you can try base64:

dim strCryptedString As String = Base64Decode('bT5ew6bigJNTW0rCr3bDll/DlcOadcONw5QnwrTDpMWTw4jigJggwq5ATcKpdMKyI8O3W8OJw6XCuVXDp2ZVNVTCsMOkw5nigJzCqeKAncuGw4dWw51dIFvigJll4oSiYcKPwqvDg8KwNyNkw4lKPg==');

I am not sure which libraries have real names.

+1

, . .

0

Source: https://habr.com/ru/post/1715135/


All Articles