Charset in Query Results

View: New views
3 Messages — Rating Filter:   Alert me  

Charset in Query Results

by Arnaud DELEURME :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello all,

I use Query_by_point in my project toolbar.
It works very well but I have a problem with the UTF Charset.

In fact, I use Shapefile with UTF and ISO encoding in my .dbf files.
My query table shows my data attributes in ISO but it doesn't show in UTF...

Where can I modify in order to see my attributes data in ISO and UTF...

In my client.ini.in , I have :

Encoder.Class.data= EncoderUTF
EncoderClass.config = EncoderUTF
EncoderClass.output = EncoderUTF
EncoderClass.value_iso = EncoderISO


In my myproject.ini , I have EncoderClass.config = EncoderUTF


Thank you very much for your help...
 

Arnaud DELEURME.



_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@...
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Re: Charset in Query Results

by Bruno Friedmann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Arnaud DELEURME wrote:

> Hello all,
>
> I use Query_by_point in my project toolbar.
> It works very well but I have a problem with the UTF Charset.
>
> In fact, I use Shapefile with UTF and ISO encoding in my .dbf files.
> My query table shows my data attributes in ISO but it doesn't show in UTF...
>
> Where can I modify in order to see my attributes data in ISO and UTF...
>
> In my client.ini.in , I have :
>
> Encoder.Class.data= EncoderUTF
> EncoderClass.config = EncoderUTF
> EncoderClass.output = EncoderUTF
> EncoderClass.value_iso = EncoderISO
>
>
> In my myproject.ini , I have EncoderClass.config = EncoderUTF
>
>
> Thank you very much for your help...
>
>
> Arnaud DELEURME.

I don't want to be pessimistic but I don't think you could have data in UTF and ISO inside the same plugin like query.
Perharps you could find something to get data transformed by the engines ( could be possible with the postgis layer forcing
client encoding at connexion ) but with shapes ?

Inside my project now, i only use utf-8 for data, string/translate etc ... perharps it's easy to transform all the data shape to
an unified format for you.


--

     Bruno Friedmann
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@...
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Re: Charset in Query Results

by arno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I rode in the documentation like we can use in the metadata (in mapfile)
"data_encoding" "value_iso"
We can insert this parameter in layers.ini if the others layers are in utf-8

http://www.cartoweb.org/doc_head/docbook/xhtml/user.layers.html#user.layers.metadata
(see 6.3)

Arno
Bruno Friedmann-2 wrote:
Arnaud DELEURME wrote:
> Hello all,
>
> I use Query_by_point in my project toolbar.
> It works very well but I have a problem with the UTF Charset.
>
> In fact, I use Shapefile with UTF and ISO encoding in my .dbf files.
> My query table shows my data attributes in ISO but it doesn't show in UTF...
>
> Where can I modify in order to see my attributes data in ISO and UTF...
>
> In my client.ini.in , I have :
>
> Encoder.Class.data= EncoderUTF
> EncoderClass.config = EncoderUTF
> EncoderClass.output = EncoderUTF
> EncoderClass.value_iso = EncoderISO
>
>
> In my myproject.ini , I have EncoderClass.config = EncoderUTF
>
>
> Thank you very much for your help...
>
>
> Arnaud DELEURME.

I don't want to be pessimistic but I don't think you could have data in UTF and ISO inside the same plugin like query.
Perharps you could find something to get data transformed by the engines ( could be possible with the postgis layer forcing
client encoding at connexion ) but with shapes ?

Inside my project now, i only use utf-8 for data, string/translate etc ... perharps it's easy to transform all the data shape to
an unified format for you.


--

     Bruno Friedmann
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users