Fwd: Re: [Qgis-developer] issues with Polish chars in PostGIS column names

Marco Hugentobler marco.hugentobler at karto.baug.ethz.ch
Sun Mar 9 04:30:55 EDT 2008


Hi Jürgen,

As you are the maintainer of the postgres provider, could you review Stevens 
patch and apply if it is ok?

Thanks,
Marco


----------  Weitergeleitete Nachricht  ----------

Betreff: Re: [Qgis-developer] issues with Polish chars in PostGIS column names
Datum: Samstag 08 März 2008
Von: Steven Mizuno <spookster at netzero.net>
An: qgis-developer at lists.osgeo.org



Maciej Sieczka wrote:
> 
> When I create a table that has Polish 
> characters in a column name like:
> 
> CREATE TABLE instruments ("gęśle" text);
> 
> psql and PgAdmin can work with it fine. QGIS can't.
> 
> When a column with a Polish char in it's name in a PostGIS layer is 
> present, QGIS can't edit the layer - features and columns are not 
> added/removed when digitizing or editing attributes, although QGIS does 
> not yield any errors. The user is not informed QGIS fails to save 
> changes. I guessed what's going on by the fact the column name was 
> garbled which looked suspicius.
> 
> Is this a bug in QGIS?
> 

Yes, there is a problem with non-ASCII characters in PostGIS layers in QGIS.
There is inconsistent use of character set encodings when sending commands
to/ receiving data from PostgreSQL server. I had noticed this when I was
working on a patch for uppercase handling caused by unquoted identifiers
sent to the server.

I have submitted a patch on bug #964 
(https://trac.osgeo.org/qgis/ticket/964) that fixes such
internationalization issues. I believe that it works properly with all
object identifiers as well as data, but have only tested with a PostgreSQL
server having UTF-8 encoding as its default. Even database names can have
non-ASCII characters.

I have also noticed that many database failures do not provoke any message
boxes.

If you are willing to compile patched source, I would be interested in any
feedback, especially if there is something  related to character sets that
doesn't work.

-- 
View this message in context: 
http://www.nabble.com/issues-with-Polish-chars-in-PostGIS-column-names-tp15918312p15920379.html
Sent from the qgis-developer mailing list archive at Nabble.com.

_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

-- 
Dr. Marco Hugentobler
Institute of Cartography
ETH Zurich
Technical Advisor QGIS Project Steering Committee


More information about the Qgis-developer mailing list