[Tilesathome] setting up the api was: [OSM-dev] t at h API still turn off...
Florian Lohoff
flo at rfc822.org
Tue Sep 2 13:33:57 BST 2008
On Tue, Sep 02, 2008 at 01:51:14PM +0200, Martijn van Oosterhout wrote:
> On Tue, Sep 2, 2008 at 12:27 PM, Florian Lohoff <flo at rfc822.org> wrote:
> > <node id="50553449" lat="51.7439626" lon="8.3798345" user="seufer_wolle" visible="true" timestamp="2007-09-13T12:27:46+01:00">
> > <tag k="created_by" v="JOSM"/>
> > <tag k="name" v="Mastholte-Süd"/>
> > <tag k="is_in" v="Northrine-Westfalia,Germany"/>
> > <tag k="place" v="village"/>
> > </node>
> >
> > So some recoding is going on somewhere (i'll not exclude intelligent perl)
>
> Don't forget things like:
>
> binmode STDOUT, ":utf8";
> binmode STDIN, "utf8";
>
> And any filehandles you might be using. You must do this if you want
> the output to be UTF-8 encoded. Otherwise it defaults to your locale.
> I know it's painful but you need to make sure your input side handled
> it properly, you need to check the actual bytes coming from the mysql
> server, just SELECT stataments at the console won't do, because your
> terminal will "guess" the encoding sometimes making it look like it
> works when it's actually wrong.
my guess is that it simply works because everythings debian here with
utf-8 locale :)
Flo
--
Florian Lohoff flo at rfc822.org +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20080902/d461eb30/attachment.pgp>
More information about the Tilesathome
mailing list