<div dir="ltr"><div><div>Hi Andr?,<br><br>If I understand correct you have a problem with special characters<br>I had the same problem with eastern europe languages.<br>My solution is to change coding: "escape" into "encodeURIComponent" in Service.js<br>
the easy part is to change lines with:<br>params[input_name].push( escape(input_value) );<br>into<br>params[input_name].push( escape(input_value) );<br>into<br>params[input_name].push( encodeURIComponent(input_value) );<br>
<br>And the hard part, in every php file, all request change into urldecode<br>for example in identyfy.php<br>$visibleLayers = $_REQUEST['layers'];<br>into<br>$visibleLayers = urldecode($_REQUEST['layers']);<br>
...<br>$projection = $_REQUEST['projection'];<br>into<br>$projection = urldecode($_REQUEST['projection']);<br>...<br>lot of fun ;)<br><br>but this will make geomoose fit for all languages.<br><br><br></div>
good lock<br></div>chmielix<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 March 2014 17:55,  <span dir="ltr"><<a href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank">geomoose-users-request@lists.osgeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Geomoose-users mailing list submissions to<br>
        <a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:geomoose-users-request@lists.osgeo.org">geomoose-users-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:geomoose-users-owner@lists.osgeo.org">geomoose-users-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Geomoose-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Search Capablility For A Layer with Portuguese    special<br>
      characters (Andr? Barriguinha)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 13 Mar 2014 16:55:35 +0000<br>
From: Andr? Barriguinha <<a href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a>><br>
To: Dan Little <<a href="mailto:theduckylittle@gmail.com">theduckylittle@gmail.com</a>><br>
Cc: GeoMOOSE Users List <<a href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a>><br>
Subject: [Geomoose-users] Search Capablility For A Layer with<br>
        Portuguese      special characters<br>
Message-ID: <<a href="mailto:5321E307.4000509@agriciencia.com">5321E307.4000509@agriciencia.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
Yes UTF-8<br>
<br>
You can see the interface here although in Portuguese:<br>
<br>
<a href="http://agriciencia.servehttp.com:1024/riplante/riplante.html" target="_blank">http://agriciencia.servehttp.com:1024/riplante/riplante.html</a><br>
<br>
I have also the same issues in the identify tool. If i use a shapefile<br>
and read directly from the table stored in a folder it doesnt work. If i<br>
put them in PostGIS it reads ok and all the special characters are<br>
identified.<br>
<br>
Regards<br>
<br>
Andr?<br>
Untitled Document<br>
<br>
<br>
Em 13-03-2014 16:38, Dan Little escreveu:<br>
> Hi Andr?,<br>
><br>
> This is an issue with encodings and PHP that I need to work out.  I<br>
> keep forgetting to do it.  We've ran into this problem with Russian,<br>
> Turkish, and German.  I can probably create a test case for German.<br>
>  Are you using UTF-8?<br>
><br>
><br>
> On Wed, Mar 12, 2014 at 1:01 PM, Andr? Barriguinha<br>
> <<a href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a><br>
> <mailto:<a href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a>>> wrote:<br>
><br>
>     I'm having trouble setting up the search to a layer when I use<br>
>     characters like ? ou ?<br>
><br>
>     Basicaly writen in Portuguese with some special characters.<br>
><br>
>     The layer is in a PostGIS database and works fine if I search<br>
>     words with no special characters<br>
><br>
>     Iam using the comparitor like-icase<br>
><br>
>     Regards<br>
><br>
>     Andr? Barriguinha<br>
><br>
><br>
>     --<br>
><br>
>     <<a href="http://www.agriciencia.com/" target="_blank">http://www.agriciencia.com/</a>>             *Andr? Barriguinha*<br>
>     */Agri-Ci?ncia, Consultores de Engenharia, Lda./*<br>
>     <<a href="http://www.agriciencia.com" target="_blank">http://www.agriciencia.com</a>><br>
>     Rua dos Lus?adas, 52 - 1?<br>
>     1300-372 LISBOA<br>
>     PORTUGAL<br>
>     *E-mail: *<a href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a><br>
>     <mailto:<a href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a>><br>
>     *Telef: *+(351) 213 649 625<br>
>     *Telm:* +(351) 914 155 278 <tel:%2B%28351%29%20914%20155%20278><br>
>     *Fax:* +(351) 213 649 625 <tel:%2B%28351%29%20213%20649%20625><br>
><br>
><br>
>     _______________________________________________<br>
>     Geomoose-users mailing list<br>
>     <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a> <mailto:<a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>><br>
>     <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
><br>
><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.html</a>><br>

-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: not available<br>
Type: image/jpeg<br>
Size: 18296 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.jpe" target="_blank">http://lists.osgeo.org/pipermail/geomoose-users/attachments/20140313/61d0b767/attachment.jpe</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
<br>
End of Geomoose-users Digest, Vol 33, Issue 5<br>
*********************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Michał Chmielewski<br><a href="mailto:mich.chmielewski@gmail.com">mich.chmielewski@gmail.com</a>
</div>