[Geomoose-users] Fwd: UTF-8 encoding in sent data to the services

Matej Mailing mailing at tam.si
Tue Oct 16 08:34:34 PDT 2012


Sorry, I misread your mail and thought you mentioned Mapserver but you
mentioned GM. This ISO-8859-1 encoding seems to be the case here, yes.

Regards,
Matej

2012/10/16 Jim Klassen <klassen.js at gmail.com>:
> I didn't say anything about MapServer.  I'm asking about the encoding the browser is operating in (set by the charset line in geomoose.html).
>
> Replacing specific letters seems like trouble to me, knowing what charsets are running where and calling something like iconv to convert between them seems more robust to me.
>
> On Oct 16, 2012, at 10:11 AM, Matej Mailing wrote:
>
>> Jim, I think this is not on the Mapserver "layer" yet. It's a simple
>> ajax data submit to the PHP and the data is then replaced in PHP
>> before being sent to Mapserver..
>>
>> Regards,
>> Matej
>>
>> 2012/10/16 Jim Klassen <klassen.js at gmail.com>:
>>> Does this have anything to do with the geomoose.html encoding set to ISO-8859-1 instead of UTF-8?
>>>
>>> (It has always bugged me that it was set to Latin-1, but I've been told it would cause chaos for US Windows deployments to set it to UTF-8.)
>>>
>>> On Oct 16, 2012, at 9:23 AM, Eli Adam wrote:
>>>
>>>> Solutions are always helpful, it helps inform other users and helps
>>>> anyone searching the mail archives.
>>>>
>>>> Thanks, Eli
>>>>
>>>> On Tue, Oct 16, 2012 at 2:29 AM, Matej Mailing <mailing at tam.si> wrote:
>>>>> Found it out - I simply replace those values with their corresponding
>>>>> letters in service's php file with str_replace and it works.
>>>>>
>>>>> It looks like I post too quick, but perhaps someone will benefit from
>>>>> such "monologues with solutions" :-)
>>>>>
>>>>> Regards,
>>>>> Matej
>>>>>
>>>>> ---------- Forwarded message ----------
>>>>> From: Matej Mailing <mailing at tam.si>
>>>>> Date: 2012/10/16
>>>>> Subject: UTF-8 encoding in sent data to the services
>>>>> To: GeoMOOSE Users List <geomoose-users at lists.osgeo.org>
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I have found out some problems when entering special chars (ü, ä
>>>>> etc.). The page encoding is set to UTF-8, but I can see in Firebug
>>>>> that the data sent to the service as value0 for the input "ü" is seen
>>>>> as: "%FC".
>>>>>
>>>>> I am not sure if this should be set in dojo or somewhere else? We need
>>>>> to get UTF-8 native symbols into the php of services so we can use
>>>>> them in queries etc.
>>>>>
>>>>> Thanks for any ideas and suggestions, I am pretty lost here with this.
>>>>>
>>>>> Regards,
>>>>> Matej
>>>>> _______________________________________________
>>>>> Geomoose-users mailing list
>>>>> Geomoose-users at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>>> _______________________________________________
>>>> Geomoose-users mailing list
>>>> Geomoose-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>>
>


More information about the Geomoose-users mailing list