Hi, As far as I know the driver doesn't do any character encodings with the values retieved from the database, according to your default database setting you may try to convert those strings manually. For example if your database has the 1252 codepage by default, the character conversion may look something like:
byte[] bytes = Encoding.Convert(Encoding.Unicode, Encoding.Default, Encoding .Unicode.GetBytes(shape.getValue(index))); string str = Encoding.GetEncoding(1252).GetString(bytes); Best regards, Tamas 2009/1/15 Murty Maganti <[email protected]> > Hello > > > > I am having some issue with attribute (field) values for ArcSDE or Oracle > Spatial layers. All text field values are becoming junk characters (after > calling queryByRect() method). I am using C# map script and VS 2008. This is > happening for text fields. Number and date fields seems to be fine. Is there > any special encoding I need to handle in .Net when values are retrieved > (shapeObj.values)? Same field values looks fine in ArcIMS and ArcMap. > > > > Thanks > > Murty > > > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
