Visokio website     Downloads     Video tutorials     KnowledgeBase  
URL Encode parameters in weblinks - Visokio Forums
URL Encode parameters in weblinks
  •     tamax May 17, 2012 6:55AM
    Hi,

    I don't know if we can consider this as a bug but parameters in a weblink (used in a webview) are not url encoded and so lead to param errors when passing a string that contains special characters, like "&".

    Regards,
    Maxime.
  • 6 Comments
  • antonio     antonio May 18, 2012 7:45AM
    Can you paste the link you are having problem with?
    Also, which OS are you using? Which version of Omniscope?
  •     tamax May 18, 2012 7:53AM
    for instance: http://www.mydomain.com?param1=myvar1&param2=myvar2
    where:
    myvar1 is a visokio string field and equals "hello #world"
    myvar2 is a visokio string field and equals "hello &world"

    Both will fail. (sorry can't paste the real link, but it is built the same way)

    I am using Visokio 2.7 b343 on Windows Server 2008 R2 x64

    Best regards,
    Maxime.
  •     michael May 18, 2012 8:26AM
    Hi Maxime,

    We will investigate this issue and reply with some solution shortly.
  •     tamax May 18, 2012 9:14AM
    ok thank you Michael.
  •     michael May 22, 2012 6:22AM
    Hi Maxime,

    The fix has been added today and will be available in the next nightly build 2.7-rc b350.

    If you are using special characters in your GET parameter (whitespace, #, & in your example). Those parameters should be converted according with URL encoding standard, see http://en.wikipedia.org/wiki/Percent-encoding .

    Before we passed Field value as it is.

    With this fix, if you have '=' sign just before your field (there shouldn't be any white-spaces or other characters) the value from the field will be automatically encoded with URL encoding standard.

    For example, if in your Settings->Links->Add web link :

       http://translate.google.co.uk/?q=[Your field here]

    then if you have for example following Field value:

       pen & paper

    in your field, then you'll get URL with encoded parameter :

       http://translate.google.co.uk/?q=pen%20%26%20paper

  •     tamax May 22, 2012 7:00AM
    ok thanks a lot Michael!

Welcome!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership