• a character is not converted properly

    By Vlad Chivulescu 1 decade ago

    Hi Steve



    I am stuck and need you help. Lets say that I have a person and when click on selection icon the "NP_getNameLS" lotus script agent pushes the following info about him (please note the special i from "Tecnologia"):



    NP_names.push( { name: "George, Mee (CL - Santiago)", sname: "gmee", pab: "GC://dc=acme,dc=com",email: "gmee@acme.com", location: "Santiago", department: "TecnologĂ­a", ophone: "", mphone: "", fax: "", manager: "" } );



    The Name Picker will display an error in "var NP_handleDataOk = function(o){…}" and the department's value is not between double quotas. I have tried to find out where it comes from but no success yet. I could fix it in the Lotus Notes agent but it would be better to fix it in javascript code. Do you have any idea where it comes from?



    thanks

    vlad




    o.responseText  &quot;NP_names.length=0;<br/>
    



    Action takenNP_names.push( { name: \"George, Mee (CL - Santiago)\", sname: \"gmee\", pab: \"GC://dc=acme,dc=com\",email: \"gmee@acme.com\", location: \"Santiago\", department: \"Tecnolog?, ophone: \"\", mphone: \"\", fax: \"\", manager: \"\" } );

    " String

    • fixed...

      By Vlad Chivulescu 1 decade ago

      Hi Steve



      I found the answer… a workmate pointed me in the right direction. In "NP_getNameLS" agent in order to prevent Domino to send its html header you have:


      Print |Content-Type:text/plain|     <br/>
      



      This line has to be modified to include the character set:


      Print |Content-Type:text/plain; charset=ISO-8859-1|     <br/>
      



      thanks

      vlad



      PS:

      1) In order for "NP_getNameLS" agent to work with a LDAP search it is necessary to set its "set up runtime security" property to 2

      2) I will try to use your "AJAX Name Picker" as a Lotus Notes @PickList equivalent in a web application. This is why it would be nice if it were possible to specify the database, the view, the fields that you are interested in as parameters. Even so I think that it will be possible.