[mapserver-users] MapServer CGI Controls doc web page

Stephen Woodbridge woodbri at swoodbridge.com
Tue Mar 29 06:40:07 PDT 2011


Steve L,

I'm not sure but my guess is that we would need to look at:

1. What support pcre or re has for extended character or UTF8 support
2. Make sure the the parser can collect those characters
3. maybe decide if we want to optionally support äåö 
sequences in the mapfile/CGI and convert appropriately

So unless someone thought about this, given all the pieces above that 
would need to work together, I would suspect that you will have 
problems. But again - I do not know for sure.

For 1. above, Google says:

pcre specification
Aug 9, 2007 ... In order process UTF-8 strings, you must build PCRE to 
include UTF-8 support in the code, and, in addition, you must call 
pcre_compile() ...
regexkit.sourceforge.net/Documentation/pcre/pcre.html - Cached - Similar

So this indicates that it is possible to get pcre with utf8 support. So 
this might be a starting place.

And from the Debian Lenny man page:

> The  current  implementation of PCRE (release 7.x) corresponds approxiâ
> mately with Perl 5.10, including support for UTF-8 encoded strings  and
> Unicode general category properties. However, UTF-8 and Unicode support
> has to be explicitly enabled; it is not the default. The Unicode tables
> correspond to Unicode release 5.0.0.


-Steve W

On 3/29/2011 9:15 AM, Lime, Steve D (DNR) wrote:
> I really don't know. Perhaps other devs with experience with extended
> character sets might have some thoughts... Steve
> ________________________________________ From:
> mapserver-users-bounces at lists.osgeo.org
> [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
> [Jukka.Rahkonen at mmmtike.fi] Sent: Monday, March 28, 2011 2:00 PM To:
> mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users]
> MapServer CGI Controls doc web page
>
> Hi,
>
> How straight forward it is to validate non-ASCII characters like äåö
> (äå&ouml)?
>
> -Jukka Rahkonen
>
>
> Lime, Steve D wrote:
>
>> Hi Andrea: I believe Daniel already commented on the documentation
>> side of things. In terms of an example it's pretty straight
>> forward. The validation pattern is given as a regex like so:
>
>> LAYER
> ...
>> METADATA 'qstring_validation_pattern' '.' # would allow any value
>> 'qstring_validation_pattern' '^[a-z]{1,16}$' # would allow a string
>> up to 16 characters in length consisting of lower-case alpha only
>> 'qstring_validation_pattern' '^[0-9]{1,2}$' # one or two digit
>> number only END END
>
>> Hope this helps- Steve
>
>
>> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
> iomeneandrei Sent: Sunday, March 27, 2011 3:56 AM To:
> mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer
> CGI Controls doc web page
>
>> Dear all, today I tried a CGI itemquery command and I have had
>> qstring_validation_pattern error.
>
>> I have solved searching in this mailing list (thank you), but I
>> found nothing about it in CGI documentation.
>
>> I think that the sentence you have in MapServer 4.10 to 5.0
>> Migration doc web page - "the qstring_validation_pattern
>> layer-level metadata is required for qstring queries to work" -
>> should be included in MapServer CGI Controls doc web page. It would
>> be fantastic to have also some qstring_validation_pattern example.
>
>> Once again thank you and best regards,
>
>> Andrea
>
>> ----- Andrea Borruso
>
> ---------------------------------------------------- email:
> aborruso at tin.it website: http://blog.spaziogis.it my 2.0 life:
> http://aborruso.spaziogis.it feed:
> http://feeds2.feedburner.com/Tanto 38° 7' 48" N, 13° 21' 9" E
> ---------------------------------------------------- -- View this
> message in context:
> http://osgeo-org.1803224.n2.nabble.com/MapServer-CGI-Controls-doc-web-page-tp6211951p6211951.html
>
>
Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________ mapserver-users
> mailing list mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
>
> _______________________________________________ mapserver-users
> mailing list mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> _______________________________________________ mapserver-users
> mailing list mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list