<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The .cpg files we generate through <span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana,Helvetica,sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span" style="font-size: 12px; line-height: 19px;">ArcGIS<span
class="Apple-converted-space"> desktop contain the string: </span></span></span><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana,Helvetica,sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span" style="font-size: 12px; line-height: 19px;"><span
class="Apple-converted-space">UTF-8</span></span></span><br>
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana,Helvetica,sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span" style="font-size: 12px; line-height: 19px;"><span
class="Apple-converted-space"><br>
Some time ago, there was a mail on this list about problems in case of
conflicting information in the .cpg file compared to the </span></span></span><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">Language
Driver ID (LDID) in the header of a dBASE file, see:</span></span><a
href="http://lists.osgeo.org/pipermail/gdal-dev/2010-May/024619.html">
http://lists.osgeo.org/pipermail/gdal-dev/2010-May/024619.html</a><br>
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana,Helvetica,sans-serif; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span" style="font-size: 12px; line-height: 19px;"><span
class="Apple-converted-space"><br>
Hermann<br>
<br>
</span></span></span>On 06/07/2010 04:13, Francis Markham wrote:
<blockquote
cite="mid:AANLkTike2xzgZbCD4TJQhBkX2ByOr-2X68GBRcWL2Ise@mail.gmail.com"
type="cite">
<pre wrap="">Okay, I will take that approach then. Thank you all for your help.
What specific value should I write into the .cpg? The string '65001'
or the string 'utf-8' or something else?
-Francis
On 5 July 2010 21:53, Peter Hopfgartner <a class="moz-txt-link-rfc2396E" href="mailto:peter.hopfgartner@r3-gis.com"><peter.hopfgartner@r3-gis.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Francis,
what does not portable mean? ArcMap handles UTF-8 fine, if the correct
encoding is written into the .cpg file. Recent shapelib should handle
this fine, too. If there is any problem with a specific GIS program, a
bug report for that GIS program might be the right thing to do.
Regards,
Peter
On Mon, 2010-07-05 at 19:18 +1000, Francis Markham wrote:
</pre>
<blockquote type="cite">
<pre wrap="">At the bottom of this page, for one:
<a class="moz-txt-link-freetext" href="http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106">http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106</a>
But honestly I've found hard to find information about this. I'd be
very happy to be corrected if this is not the case!
Cheers,
Francis
On 5 July 2010 19:09, Hermann Peifer <a class="moz-txt-link-rfc2396E" href="mailto:peifer@gmx.eu"><peifer@gmx.eu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Francis, you wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">I have heard that the use of UTF-8 in shapefiles is not portable.
</pre>
</blockquote>
</blockquote>
<pre wrap="">
Where did you hear this?
Regards, Hermann
On 03/07/2010 04:40, Francis Markham wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Hi there,
I'm trying to write data from a Microsoft Excel .xls file into a
shapefile, using OGR's Python bindings in Python 2.6. This is going
well, but I am having some problems when I try to write values that
contain so-called "smart quotes". Smart quotes are special
characters, defined as characters 0x91 through 0x94 in Windows-1252 (
see <a class="moz-txt-link-freetext" href="http://msdn.microsoft.com/en-au/goglobal/cc305145.aspx">http://msdn.microsoft.com/en-au/goglobal/cc305145.aspx</a> ).
What is the best way to save this data to a shapefile using OGR? I
need the shapefile to be interoperable with other programs, including
but not limited to ESRI products. While I assume I could simply
translate these characters to standard ASCII, I would prefer not to if
possible. I also haven't tested the shapefiles with data from other
character encodings.
I have heard that the use of UTF-8 in shapefiles is not portable. I
am also aware that shapefile.cpg can store a shapefile's codepage. I
don't know how to put these pieces together to create a portable
solution, however.
Apologies if this is a newbie question, but I can't find answers on the
web.
Thanks,
Francis Markham
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre wrap="">
--
Dott. Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: <a class="moz-txt-link-abbreviated" href="mailto:peter.hopfgartner@r3-gis.com">peter.hopfgartner@r3-gis.com</a>
Tel. : +39 0473 494949
Fax : +39 0473 069902
www : <a class="moz-txt-link-freetext" href="http://www.r3-gis.com">http://www.r3-gis.com</a>
XING : <a class="moz-txt-link-freetext" href="http://www.xing.com/go/invita/8917535">http://www.xing.com/go/invita/8917535</a>
</pre>
</blockquote>
</blockquote>
</body>
</html>