Hi, I had a similar issue, and the solution I used works but is labour intensive. I'm working mobile right now so I can't send you the link, but the solution is on the Esri forum somewhere. It concerns setting a registry key to a certain value. After this, restart ArcGIS (assuming you have this) add the shapefile, and then export it by rightclicking it in the table of contents-> export data. Save it as a different file, and the attribute data will be in UTF8.
I'll see if I have the link somewhere tonight. Cheers, Tom [email protected]: >Send mapserver-users mailing list submissions to > [email protected] > >To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users >or, via email, send a message with subject or body 'help' to > [email protected] > >You can reach the person managing the list at > [email protected] > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of mapserver-users digest..." > > >Today's Topics: > > 1. size of legend icon for pixmap-type classes (NASUNO Isao) > 2. GetfeatureInfo-Request in an UTF-8 environment with shapfile > in cp-1252 (Siegel Andreas) > 3. Re: GetfeatureInfo-Request in an UTF-8 environment with > shapfile in cp-1252 (Jeff McKenna) > 4. RE: size of legend icon for pixmap-type classes > (Lime, Steve D (DNR)) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Tue, 08 Feb 2011 17:42:23 +0900 >From: NASUNO Isao <[email protected]> >Subject: [mapserver-users] size of legend icon for pixmap-type classes >To: [email protected] >Message-ID: <[email protected]> >Content-Type: text/plain; charset=ISO-2022-JP > >Hello all, > >I'm trying to make mapfile which includes polygon layer >with pixmap-type symbol classes. > >The symbols are defined like ... >--------------------- >SYMBOL > NAME "symbol1" > TYPE pixmap > image /somewhere/symbol1.gif > transparent 1 >END >--------------------- > >The polygon layer with pixmap is drawn perfectly by map mode, >however in legend mode (mode=legend), the icons drawn like line layer. >How do I say... it seems that mapserver draws icon for line ( /\/ ) >like ArcMap's line layer using "brush" of the gif image. > >I defined the layer certainly as "type polygon". > > >--------------------- > layer > name "jimon" > connectiontype postgis > connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" > data "the_geom from polygon" > status on > type polygon > classitem "id" > projection > "init=epsg:4326" > end > > class > name "pattern1 " > expression "1" > style > symbol "symbol1" > end > end > end >--------------------- > >What I want is normal rectangle-shaped icons filled up with the gif. > >Could anyone help me ? > >Thanks, > >Isao NASUNO > > >------------------------------ > >Message: 2 >Date: Tue, 8 Feb 2011 15:37:35 +0100 >From: "Siegel Andreas" <[email protected]> >Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 > environment with shapfile in cp-1252 >To: <[email protected]> >Message-ID: > <5fbe485f93722e4589047fab5195b63c051b0...@avlrbrcl08a.net.vlr.gv.at> >Content-Type: text/plain; charset="iso-8859-1" > >Hi. > >Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, >postgres, ..) with one exception, that is, all of our shapefiles. >The shapfiles are created/updated in an Windows-environment by several, >external contributors. >Hence they are encoded in Wiindows-ANSI (cp: 1252). > >If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all >special characters ("umlauts") are garbled. >This is no wonder since the content of the shapefile-attributes must be >recoded to utf-8 prior to insertion in the template.html. > >How can this be acomplished? I could not find anything useful in the >documentation or with google. > > >Mag Andreas Siegel >Landesvermessungsamt Feldkirch >Johannitergasse 6, A-6800 Feldkirch >Tel: +43(0) 5522 / 75482 - 60227 >Fax: +43(0) 5522 / 75482 - 6 >E-Mail: [email protected] ><mailto:[email protected]> >http://www.vorarlberg.at/lva > >Rechtsverbindlichen Schriftverkehr >(zB Antr�ge, Rechtsmittel) richten Sie an: >E-Mail: [email protected] >Fax: +43(0)5522/75482-6 > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: >http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110208/b94ad66d/attachment-0001.html > >------------------------------ > >Message: 3 >Date: Tue, 08 Feb 2011 10:48:49 -0400 >From: Jeff McKenna <[email protected]> >Subject: Re: [mapserver-users] GetfeatureInfo-Request in an UTF-8 > environment with shapfile in cp-1252 >To: [email protected] >Message-ID: <[email protected]> >Content-Type: text/plain; charset=UTF-8; format=flowed > >Hello, > >A quick thought that I had when I read your issue, is that I recently >came across a similar issue when I was working with Japanese data. In >that case for MapServer to display query results in my template >properly, I had to change the character set in the HTML template file, >otherwise the characters would be garbled: > ><!-- MapServer Template --> ><html> ><head> ><meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> ><title>������</title> >... > >I'm not sure if that is related to your exact issue, but those are my >quick thoughts. > >-jeff > > >-- >Jeff McKenna >MapServer Consulting and Training Services >http://www.gatewaygeomatics.com/ > > > > >On 11-02-08 10:37 AM, Siegel Andreas wrote: >> Hi. >> Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, >> postgres, ..) with one exception, that is, all of our shapefiles. >> The shapfiles are created/updated in an Windows-environment by several, >> external contributors. >> Hence they are encoded in Wiindows-ANSI (cp: 1252). >> If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all >> special characters ("umlauts") are garbled. >> This is no wonder since the content of the shapefile-attributes must be >> recoded to utf-8 prior to insertion in the template.html. >> How can this be acomplished? I could not find anything useful in the >> documentation or with google. >> *Mag Andreas Siegel* > > >------------------------------ > >Message: 4 >Date: Tue, 8 Feb 2011 10:23:59 -0600 >From: "Lime, Steve D (DNR)" <[email protected]> >Subject: RE: [mapserver-users] size of legend icon for pixmap-type > classes >To: NASUNO Isao <[email protected]>, > "[email protected]" > <[email protected]> >Message-ID: > <a7f7b3043d3bf0438f1206baa3c9933c0826823...@mnmail05.ead.state.mn.us> >Content-Type: text/plain; charset="us-ascii" > >What version are we talkin'? > >Steve > >-----Original Message----- >From: [email protected] >[mailto:[email protected]] On Behalf Of NASUNO Isao >Sent: Tuesday, February 08, 2011 2:42 AM >To: [email protected] >Subject: [mapserver-users] size of legend icon for pixmap-type classes > >Hello all, > >I'm trying to make mapfile which includes polygon layer >with pixmap-type symbol classes. > >The symbols are defined like ... >--------------------- >SYMBOL > NAME "symbol1" > TYPE pixmap > image /somewhere/symbol1.gif > transparent 1 >END >--------------------- > >The polygon layer with pixmap is drawn perfectly by map mode, >however in legend mode (mode=legend), the icons drawn like line layer. >How do I say... it seems that mapserver draws icon for line ( /\/ ) >like ArcMap's line layer using "brush" of the gif image. > >I defined the layer certainly as "type polygon". > > >--------------------- > layer > name "jimon" > connectiontype postgis > connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" > data "the_geom from polygon" > status on > type polygon > classitem "id" > projection > "init=epsg:4326" > end > > class > name "pattern1 " > expression "1" > style > symbol "symbol1" > end > end > end >--------------------- > >What I want is normal rectangle-shaped icons filled up with the gif. > >Could anyone help me ? > >Thanks, > >Isao NASUNO >_______________________________________________ >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 > > >End of mapserver-users Digest, Vol 37, Issue 13 >***********************************************
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
