[mapguide-internals] FeatureSource encoding of layers

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Mon Aug 18 04:25:52 EDT 2008


I have some bug reports regarding wrong encoding of spaces and other 
characters:
http://trac.osgeo.org/mapguide/ticket/635
http://trac.osgeo.org/mapguide/ticket/662

After checking up on the problem, it turns out that the 
"DESCRIBEFEATURESCHEMA" returns an xml with these encoded characters.
The characters turn up in the class name part of the xml (name, type, 
key, selector elements).
It is easy to detect and re-code, as they are of the form -x00- where 00 
is the charaters hex value.
Entering either the encoded or unencoded value into the Schema field of 
the "DESCRIBEFEATURESCHEMA" call, gives the same results.

The question is, why are they there?

When, if ever, should the names be passed encoded to the server?
Are there a better call that does not encode the names?
(GETCLASSES returns the unencoded names, but no column data)

-- 
Regards, Kenneth Skovhede, GEOGRAF A/S




More information about the mapguide-internals mailing list