[TinyOWS-users] Non-ASCII characters not accepted in layer title

Carlos Ruiz boolean10001 at yahoo.com
Wed May 18 10:19:14 EST 2011


When you set the output encoding affects to the whole server response, which is fine to be able to handle special 

characters in the client side.

Setting the output encoding only affects the XML server responses to allow the right communication between TinyOWS 

and any application, it doesn't changes the encoding of the database.

You can

Replace the special characters like "ä" into your config file to be compliant with UTF-8 when the client applicationreceives 

the GetCapabilities/GetFeature response, but if the table's data has special characters too, it will fail again


Set the output encoding as ISO-8859-X in your config file to be able to get right the GetCapabilities/GetFeature response

with special characters

IC Carlos Ruiz

From: Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>
To: Carlos Ruiz <boolean10001 at yahoo.com>; TinyOWS users discuss list <tinyows-users at lists.maptools.org>
Sent: Wednesday, May 18, 2011 3:41 AM
Subject: Re: [TinyOWS-users] Non-ASCII characters not accepted in layer title

Doesn't changing the encoding parameter make the 
whole output look like it isn't UTF-8 any more? The documentation 
encoding : Output encoding. Default is UTF-8. Others 
values could be ISO-8859-1 for instance. No encoding conversion is done on 
datas, encoding is declarative. 
I want to use UTF-8 so I just made some 
violence for the Finnish language by editing away the non-ASCII characters 
from my configuration file and now I can go on with testing.
I verified several times that my server really does 
stop if I have "ä" character in the title
title="MML-lentokentät v. 2011"
The server version is r537 and it is running on Ubuntu 
-Jukka Rahkonen-

Carlos Ruiz  wrote:
>Special characters must be handled in the server responses and in  the database transactions.
>That's why was added to TinyOWS the  following config attributes:
>/tinyows at encoding /map/metadata at wfs_encoding  
>/tinyows at db_encoding /map/metadata at tinyows_db_encoding  
>GetCapabilities and other WFS  requests seems to be broken when the xml response finds a character that 
>doesn't belong to the current encoding (UTF-8 by default).
  suggest that you set the tinyows at encoding (config.xml) or 
  map/metadata at wfs_encoding (config.map) to 
>a ISO-8859-X, where X takes 
  values from 1 to 9, to support the special characters you 
>Cheers from México
>IC Carlos Ruiz
> From: Rahkonen Jukka  <Jukka.Rahkonen at mmmtike.fi>
>To: TinyOWS users discuss list  <tinyows-users at lists.maptools.org>
>Sent: Monday, May 16, 2011 11:36  PM
>Subject: [TinyOWS-users]  Non-ASCII characters not accepted in layer title
  looks like adding this layer into config.xml breaks GetCapabilities and it 
  seems to be because of "MML-lentokentät". With "MML-lentokentat" it is 
  accepted. Is this limitation coming from the standard?
>    writable="0"
>    ns_uri="http://latuviitta.fi/"
  title="MML-lentokentät v. 2011"
  abstract="Maanmittauslaitoksen 1:1000000 airport-taso" />
  mailing list
>TinyOWS-users at lists.maptools.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/tinyows-users/attachments/20110518/b7ecac54/attachment.htm 

More information about the TinyOWS-users mailing list