<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Thank you for the replies.<br>
      <br>
      But the problem pressists even with encodeURIComponent()<br>
      <br>
      Here are the parameters that are send when I search for "bragança"<br>
      <br>
      <blockquote type="cite">
        <table role="presentation" class="netInfoPostParamsTable "
          cellpadding="0" cellspacing="0">
          <tbody role="list" aria-label="Parâmetros" class=" ">
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">comparitor0</span></td>
              <td role="list" aria-label="comparitor0"
                class="netInfoParamValue "><code role="listitem"
                  class="focusRow subFocusRow ">like-icase</code></td>
            </tr>
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">dojo.preventCache</span></td>
              <td role="list" aria-label="dojo.preventCache"
                class="netInfoParamValue "><code role="listitem"
                  class="focusRow subFocusRow ">1394788474941</code></td>
            </tr>
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">fieldname0</span></td>
              <td role="list" aria-label="fieldname0"
                class="netInfoParamValue "><code role="listitem"
                  class="focusRow subFocusRow ">distrito</code></td>
            </tr>
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">highlight</span></td>
              <td role="list" aria-label="highlight"
                class="netInfoParamValue "><code role="listitem"
                  class="focusRow subFocusRow ">true</code></td>
            </tr>
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">layer0</span></td>
              <td role="list" aria-label="layer0"
                class="netInfoParamValue "><code role="listitem"
                  class="focusRow subFocusRow ">caop/caop</code></td>
            </tr>
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">mode</span></td>
              <td role="list" aria-label="mode" class="netInfoParamValue
                "><code role="listitem" class="focusRow subFocusRow ">search</code></td>
            </tr>
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">template0</span></td>
              <td role="list" aria-label="template0"
                class="netInfoParamValue "><code role="listitem"
                  class="focusRow subFocusRow ">itemquery</code></td>
            </tr>
            <tr role="listitem" class=" ">
              <td role="presentation" class="netInfoParamName "><span
                  class=" ">value0</span></td>
              <td role="list" aria-label="value0"
                class="netInfoParamValue "><code role="listitem"
                  class="focusRow subFocusRow ">bragan%E7a</code></td>
            </tr>
          </tbody>
        </table>
      </blockquote>
      <br>
      The value that is sent is not ok<br>
      <br>
      <br>
      Regards<br>
      <br>
      André<br>
      <div class="moz-signature">
        <title>Untitled Document</title>
        <meta http-equiv="Content-Type" content="text/html;
          charset=ISO-8859-1">
        <style type="text/css">.style6 {
        FONT-SIZE: 9px
}
P {
        FONT-SIZE: 11px; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.style8 {font-family: Arial, Helvetica, sans-serif}
</style>
        <meta content="MSHTML 6.00.2900.3059" name="GENERATOR">
        <p>  </p>
        <p> </p>
        <br>
      </div>
      Em 13-03-2014 19:00, <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users-request@lists.osgeo.org">geomoose-users-request@lists.osgeo.org</a>
      escreveu:<br>
    </div>
    <blockquote
      cite="mid:mailman.37.1394737208.15471.geomoose-users@lists.osgeo.org"
      type="cite">
      <pre wrap="">Send Geomoose-users mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users-request@lists.osgeo.org">geomoose-users-request@lists.osgeo.org</a>

You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users-owner@lists.osgeo.org">geomoose-users-owner@lists.osgeo.org</a>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Geomoose-users digest..."


Today's Topics:

   1. Re: Geomoose-users Digest, Vol 33, Issue 5 (Jim Klassen)


----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Mar 2014 12:29:08 -0500
From: Jim Klassen <a class="moz-txt-link-rfc2396E" href="mailto:klassen.js@gmail.com"><klassen.js@gmail.com></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>
Subject: Re: [Geomoose-users] Geomoose-users Digest, Vol 33, Issue 5
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:5321EAE4.2070905@gmail.com"><5321EAE4.2070905@gmail.com></a>
Content-Type: text/plain; charset=UTF-8

+1 on replacing escape() with encodeURIComponent() as escape() is
deprecated and doesn't always handle Unicode correctly [1].

I am not up on the PHP services, but I have to call URI.unescape() on
the parameters in my Ruby services so calling urldecode() in PHP makes
some sense.

Any objections?

[1] <a class="moz-txt-link-freetext" href="http://www.w3schools.com/jsref/jsref_escape.asp">http://www.w3schools.com/jsref/jsref_escape.asp</a>

On 03/13/2014 12:13 PM, Micha? Chmielewski wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi Andr?,

If I understand correct you have a problem with special characters
I had the same problem with eastern europe languages.
My solution is to change coding: "escape" into "encodeURIComponent" in
Service.js
the easy part is to change lines with:
params[input_name].push( escape(input_value) );
into
params[input_name].push( escape(input_value) );
into
params[input_name].push( encodeURIComponent(input_value) );

And the hard part, in every php file, all request change into urldecode
for example in identyfy.php
$visibleLayers = $_REQUEST['layers'];
into
$visibleLayers = urldecode($_REQUEST['layers']);
...
$projection = $_REQUEST['projection'];
into
$projection = urldecode($_REQUEST['projection']);
...
lot of fun ;)

but this will make geomoose fit for all languages.


good lock
chmielix


On 13 March 2014 17:55, <<a class="moz-txt-link-abbreviated" href="mailto:geomoose-users-request@lists.osgeo.org">geomoose-users-request@lists.osgeo.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:geomoose-users-request@lists.osgeo.org"><mailto:geomoose-users-request@lists.osgeo.org></a>> wrote:

    Send Geomoose-users mailing list submissions to
    <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:geomoose-users@lists.osgeo.org"><mailto:geomoose-users@lists.osgeo.org></a>

    To subscribe or unsubscribe via the World Wide Web, visit
    <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
    or, via email, send a message with subject or body 'help' to
    <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users-request@lists.osgeo.org">geomoose-users-request@lists.osgeo.org</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:geomoose-users-request@lists.osgeo.org"><mailto:geomoose-users-request@lists.osgeo.org></a>

    You can reach the person managing the list at
    <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users-owner@lists.osgeo.org">geomoose-users-owner@lists.osgeo.org</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:geomoose-users-owner@lists.osgeo.org"><mailto:geomoose-users-owner@lists.osgeo.org></a>

    When replying, please edit your Subject line so it is more specific
    than "Re: Contents of Geomoose-users digest..."


    Today's Topics:

    1. Search Capablility For A Layer with Portuguese special
    characters (Andr? Barriguinha)


    ----------------------------------------------------------------------

    Message: 1
    Date: Thu, 13 Mar 2014 16:55:35 +0000
    From: Andr? Barriguinha <<a class="moz-txt-link-abbreviated" href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:andrebarriguinha@agriciencia.com"><mailto:andrebarriguinha@agriciencia.com></a>>
    To: Dan Little <<a class="moz-txt-link-abbreviated" href="mailto:theduckylittle@gmail.com">theduckylittle@gmail.com</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:theduckylittle@gmail.com"><mailto:theduckylittle@gmail.com></a>>
    Cc: GeoMOOSE Users List <<a class="moz-txt-link-abbreviated" href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:geomoose-users@lists.osgeo.org"><mailto:geomoose-users@lists.osgeo.org></a>>
    Subject: [Geomoose-users] Search Capablility For A Layer with
    Portuguese special characters
    Message-ID: <<a class="moz-txt-link-abbreviated" href="mailto:5321E307.4000509@agriciencia.com">5321E307.4000509@agriciencia.com</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:5321E307.4000509@agriciencia.com"><mailto:5321E307.4000509@agriciencia.com></a>>
    Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

    Yes UTF-8

    You can see the interface here although in Portuguese:

    <a class="moz-txt-link-freetext" href="http://agriciencia.servehttp.com:1024/riplante/riplante.html">http://agriciencia.servehttp.com:1024/riplante/riplante.html</a>

    I have also the same issues in the identify tool. If i use a shapefile
    and read directly from the table stored in a folder it doesnt
    work. If i
    put them in PostGIS it reads ok and all the special characters are
    identified.

    Regards

    Andr?
    Untitled Document


    Em 13-03-2014 16:38, Dan Little escreveu:
    > Hi Andr?,
    >
    > This is an issue with encodings and PHP that I need to work out. I
    > keep forgetting to do it. We've ran into this problem with Russian,
    > Turkish, and German. I can probably create a test case for German.
    > Are you using UTF-8?
    >
    >
    > On Wed, Mar 12, 2014 at 1:01 PM, Andr? Barriguinha
    > <<a class="moz-txt-link-abbreviated" href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:andrebarriguinha@agriciencia.com"><mailto:andrebarriguinha@agriciencia.com></a>
    > <<a class="moz-txt-link-freetext" href="mailto:andrebarriguinha@agriciencia.com">mailto:andrebarriguinha@agriciencia.com</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:andrebarriguinha@agriciencia.com"><mailto:andrebarriguinha@agriciencia.com></a>>> wrote:
    >
    > I'm having trouble setting up the search to a layer when I use
    > characters like ? ou ?
    >
    > Basicaly writen in Portuguese with some special characters.
    >
    > The layer is in a PostGIS database and works fine if I search
    > words with no special characters
    >
    > Iam using the comparitor like-icase
    >
    > Regards
    >
    > Andr? Barriguinha
    >
    >
    > --
    >
    > <a class="moz-txt-link-rfc2396E" href="http://www.agriciencia.com/"><http://www.agriciencia.com/></a> *Andr? Barriguinha*
    > */Agri-Ci?ncia, Consultores de Engenharia, Lda./*
    > <a class="moz-txt-link-rfc2396E" href="http://www.agriciencia.com"><http://www.agriciencia.com></a>
    > Rua dos Lus?adas, 52 - 1?
    > 1300-372 LISBOA
    > PORTUGAL
    > *E-mail: *andrebarriguinha@agriciencia.com
    <a class="moz-txt-link-rfc2396E" href="mailto:andrebarriguinha@agriciencia.com"><mailto:andrebarriguinha@agriciencia.com></a>
    > <<a class="moz-txt-link-freetext" href="mailto:andrebarriguinha@agriciencia.com">mailto:andrebarriguinha@agriciencia.com</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:andrebarriguinha@agriciencia.com"><mailto:andrebarriguinha@agriciencia.com></a>>
    > *Telef: *+(351) 213 649 625
    > *Telm:* +(351) 914 155 278 <a class="moz-txt-link-rfc2396E" href="tel:%2B%28351%29%20914%20155%20278"><tel:%2B%28351%29%20914%20155%20278></a>
    > *Fax:* +(351) 213 649 625 <a class="moz-txt-link-rfc2396E" href="tel:%2B%28351%29%20213%20649%20625"><tel:%2B%28351%29%20213%20649%20625></a>
    >
    >
    > _______________________________________________
    > Geomoose-users mailing list
    > <a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:Geomoose-users@lists.osgeo.org"><mailto:Geomoose-users@lists.osgeo.org></a>
    <<a class="moz-txt-link-freetext" href="mailto:Geomoose-users@lists.osgeo.org">mailto:Geomoose-users@lists.osgeo.org</a>
    <a class="moz-txt-link-rfc2396E" href="mailto:Geomoose-users@lists.osgeo.org"><mailto:Geomoose-users@lists.osgeo.org></a>>
    > <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
    >
    >

    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL:
    <a class="moz-txt-link-rfc2396E" href="http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.html"><http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.html></a>
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: image/jpeg
    Size: 18296 bytes
    Desc: not available
    URL:
    <a class="moz-txt-link-rfc2396E" href="http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.jpe"><http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.jpe></a>

    ------------------------------

    _______________________________________________
    Geomoose-users mailing list
    <a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:Geomoose-users@lists.osgeo.org"><mailto:Geomoose-users@lists.osgeo.org></a>
    <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>

    End of Geomoose-users Digest, Vol 33, Issue 5
    *********************************************




-- 
Micha? Chmielewski
<a class="moz-txt-link-abbreviated" href="mailto:mich.chmielewski@gmail.com">mich.chmielewski@gmail.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:mich.chmielewski@gmail.com"><mailto:mich.chmielewski@gmail.com></a>


_______________________________________________
Geomoose-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
</pre>
      </blockquote>
      <pre wrap="">


------------------------------

_______________________________________________
Geomoose-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>

End of Geomoose-users Digest, Vol 33, Issue 8
*********************************************

</pre>
    </blockquote>
    <br>
  </body>
</html>