<p dir="ltr">In geomoose.html, is the charset=ISO-8859-1 or UTF-8?</p>
<p dir="ltr">0xE7 is correct in ISO-8859-1.</p>
<p dir="ltr">IIRC I changed this to UTF-8 once but it got reverted because it broke something for some people deploying/editing files on Windows.</p>
<div class="gmail_quote">On Mar 14, 2014 4:22 AM, "André Barriguinha" <<a href="mailto:andrebarriguinha@agriciencia.com">andrebarriguinha@agriciencia.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>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 cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><span>comparitor0</span></td>
<td><code>like-icase</code></td>
</tr>
<tr>
<td><span>dojo.preventCache</span></td>
<td><code>1394788474941</code></td>
</tr>
<tr>
<td><span>fieldname0</span></td>
<td><code>distrito</code></td>
</tr>
<tr>
<td><span>highlight</span></td>
<td><code>true</code></td>
</tr>
<tr>
<td><span>layer0</span></td>
<td><code>caop/caop</code></td>
</tr>
<tr>
<td><span>mode</span></td>
<td><code>search</code></td>
</tr>
<tr>
<td><span>template0</span></td>
<td><code>itemquery</code></td>
</tr>
<tr>
<td><span>value0</span></td>
<td><code>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>
<p> </p>
<p> </p>
<br>
</div>
Em 13-03-2014 19:00, <a href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank">geomoose-users-request@lists.osgeo.org</a>
escreveu:<br>
</div>
<blockquote type="cite">
<pre>Send Geomoose-users mailing list submissions to
<a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a>
To subscribe or unsubscribe via the World Wide Web, visit
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
or, via email, send a message with subject or body 'help' to
<a href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank">geomoose-users-request@lists.osgeo.org</a>
You can reach the person managing the list at
<a href="mailto:geomoose-users-owner@lists.osgeo.org" target="_blank">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 href="mailto:klassen.js@gmail.com" target="_blank"><klassen.js@gmail.com></a>
To: <a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a>
Subject: Re: [Geomoose-users] Geomoose-users Digest, Vol 33, Issue 5
Message-ID: <a href="mailto:5321EAE4.2070905@gmail.com" target="_blank"><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 href="http://www.w3schools.com/jsref/jsref_escape.asp" target="_blank">http://www.w3schools.com/jsref/jsref_escape.asp</a>
On 03/13/2014 12:13 PM, Micha? Chmielewski wrote:
</pre>
<blockquote type="cite">
<pre>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 href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank">geomoose-users-request@lists.osgeo.org</a>
<a href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank"><mailto:geomoose-users-request@lists.osgeo.org></a>> wrote:
Send Geomoose-users mailing list submissions to
<a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a> <a href="mailto:geomoose-users@lists.osgeo.org" target="_blank"><mailto:geomoose-users@lists.osgeo.org></a>
To subscribe or unsubscribe via the World Wide Web, visit
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
or, via email, send a message with subject or body 'help' to
<a href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank">geomoose-users-request@lists.osgeo.org</a>
<a href="mailto:geomoose-users-request@lists.osgeo.org" target="_blank"><mailto:geomoose-users-request@lists.osgeo.org></a>
You can reach the person managing the list at
<a href="mailto:geomoose-users-owner@lists.osgeo.org" target="_blank">geomoose-users-owner@lists.osgeo.org</a>
<a href="mailto:geomoose-users-owner@lists.osgeo.org" target="_blank"><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 href="mailto:andrebarriguinha@agriciencia.com" target="_blank">andrebarriguinha@agriciencia.com</a>
<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank"><mailto:andrebarriguinha@agriciencia.com></a>>
To: Dan Little <<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>
<a href="mailto:theduckylittle@gmail.com" target="_blank"><mailto:theduckylittle@gmail.com></a>>
Cc: GeoMOOSE Users List <<a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a>
<a href="mailto:geomoose-users@lists.osgeo.org" target="_blank"><mailto:geomoose-users@lists.osgeo.org></a>>
Subject: [Geomoose-users] Search Capablility For A Layer with
Portuguese special characters
Message-ID: <<a href="mailto:5321E307.4000509@agriciencia.com" target="_blank">5321E307.4000509@agriciencia.com</a>
<a href="mailto:5321E307.4000509@agriciencia.com" target="_blank"><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 href="http://agriciencia.servehttp.com:1024/riplante/riplante.html" target="_blank">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 href="mailto:andrebarriguinha@agriciencia.com" target="_blank">andrebarriguinha@agriciencia.com</a>
<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank"><mailto:andrebarriguinha@agriciencia.com></a>
> <<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank">mailto:andrebarriguinha@agriciencia.com</a>
<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank"><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 href="http://www.agriciencia.com/" target="_blank"><http://www.agriciencia.com/></a> *Andr? Barriguinha*
> */Agri-Ci?ncia, Consultores de Engenharia, Lda./*
> <a href="http://www.agriciencia.com" target="_blank"><http://www.agriciencia.com></a>
> Rua dos Lus?adas, 52 - 1?
> 1300-372 LISBOA
> PORTUGAL
> *E-mail: *<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank">andrebarriguinha@agriciencia.com</a>
<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank"><mailto:andrebarriguinha@agriciencia.com></a>
> <<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank">mailto:andrebarriguinha@agriciencia.com</a>
<a href="mailto:andrebarriguinha@agriciencia.com" target="_blank"><mailto:andrebarriguinha@agriciencia.com></a>>
> *Telef: *<a href="tel:%2B%28351%29%20213%20649%20625" value="+351213649625" target="_blank">+(351) 213 649 625</a>
> *Telm:* <a href="tel:%2B%28351%29%20914%20155%20278" value="+351914155278" target="_blank">+(351) 914 155 278</a> <a href="tel:%2B%28351%29%20914%20155%20278" target="_blank"><tel:%2B%28351%29%20914%20155%20278></a>
> *Fax:* <a href="tel:%2B%28351%29%20213%20649%20625" value="+351213649625" target="_blank">+(351) 213 649 625</a> <a href="tel:%2B%28351%29%20213%20649%20625" target="_blank"><tel:%2B%28351%29%20213%20649%20625></a>
>
>
> _______________________________________________
> Geomoose-users mailing list
> <a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank"><mailto:Geomoose-users@lists.osgeo.org></a>
<<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">mailto:Geomoose-users@lists.osgeo.org</a>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank"><mailto:Geomoose-users@lists.osgeo.org></a>>
> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 18296 bytes
Desc: not available
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>
------------------------------
_______________________________________________
Geomoose-users mailing list
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a> <a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank"><mailto:Geomoose-users@lists.osgeo.org></a>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
End of Geomoose-users Digest, Vol 33, Issue 5
*********************************************
--
Micha? Chmielewski
<a href="mailto:mich.chmielewski@gmail.com" target="_blank">mich.chmielewski@gmail.com</a> <a href="mailto:mich.chmielewski@gmail.com" target="_blank"><mailto:mich.chmielewski@gmail.com></a>
_______________________________________________
Geomoose-users mailing list
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
</pre>
</blockquote>
<pre>
------------------------------
_______________________________________________
Geomoose-users mailing list
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a>
End of Geomoose-users Digest, Vol 33, Issue 8
*********************************************
</pre>
</blockquote>
<br>
</div>
<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></blockquote></div>