Baanboard.com

Baanboard.com (http://www.baanboard.com/baanboard/index.php)
-   Code & Utilities (http://www.baanboard.com/baanboard/forumdisplay.php?f=33)
-   -   URL encoder (http://www.baanboard.com/baanboard/showthread.php?t=65410)

praj17godbole 5th February 2014 12:49

URL encoder
 
Is there any function available for URL encoding?

bhushanchanda 5th February 2014 13:30

Hi,

Try this:-

Code:

string result(100)

result = curl.escape.encode$  ("http://www.google.com")


Include
Code:

#include <bic_curl>
in your script.

I guess this is what you are looking for.

praj17godbole 6th February 2014 05:35

yes. this function worked..Thank u..

praj17godbole 6th February 2014 05:39

Also, is there any functionality available in LN to handle json.. as in to convert xml to json..

bhushanchanda 6th February 2014 06:32

Hi,

No, there are no direct functions or libraries in LN to do that, but off-course you can build your own utility to convert XML to Json. Like, you can develop a Java utility and can integrate it with LN. There are a few open-source libraries to do it.

I found a few posts.:-

Link 1

Link 2

Link 3

Hope it helps.


All times are GMT +2. The time now is 17:59.


vB.Sponsors
©2001-2017 - Baanboard.com - Baanforums.com