Gmail Agenda Documenten Reader Het internet meer »
Onlangs bekeken groepen | Help | Aanmelden
Google Discussiegroepen Startpagina
Discussies > KML Server Side Scripting > Accents in name tag
Er zijn momenteel te veel onderwerpen in deze discussiegroep die als eerste worden weergegeven. Als je dit onderwerp als eerste wilt weergeven, moet je deze optie verwijderen van een ander onderwerp.
Er is een fout opgetreden bij het verwerken van je verzoek. Probeer het opnieuw.
Markeren
  2 berichten - Alles samenvouwen  -  Alles naar het vertalen Vertaald (alle originelen weergeven)
De groep waarnaar je een bericht verzendt, is een Usenet-groep. Berichten die je in deze groep verzendt, zijn zichtbaar voor iedereen op het Internet
Je antwoord is niet verzonden.
Uw bericht is geplaatst
 
Van:
Aan:
Cc:
Reactie op:
Cc toevoegen | Reactie toevoegen | Onderwerp bewerken
Onderwerp:
Validatie:
Typ ter verificatie de tekens uit de onderstaande afbeelding of de getallen die je hoort wanneer je klikt op het pictogram voor toegankelijkheid. Luister en typ de nummers die je hoort
 
mikemcc  
Profiel weergeven   Naar het vertalen Vertaald (origineel weergeven)
 Meer opties 20 okt 2009, 00:07
Van: mikemcc
Datum: Mon, 19 Oct 2009 15:07:47 -0700 (PDT)
Lokaal: di 20 okt 2009 00:07
Onderwerp: Accents in name tag
I'm developing a GE API application for worldwide users but only using
Latin1_Swedish placenames, often with acutes, graves, circumflexes
etc.

My placenames are in a MySql table and I use php to create kml files
for the GE plugin.

I'm fairly certain that these accents were displayed OK in the name
tags in the kml files, although for weeks I have had the names turned
off. Ceratinly there were no parse problems and I imagine that I had
plenty of accents in my data.

Today I have "turned on" the names again and GE reports a parse error
when a placename includes accents.

The XML specifies:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">

The MySql place table and name column had collation of
latin1_swedish_ci

After browsing forums I:
- Created a temp column with collation = utf8_unicode_ci
- Copied the name data to the temp column
- Changed the name column's collation from latin1_swedish_ci to =
utf8_unicode_ci
- Copied the name data back to the name column
but nothing improved. I also tried utf8_unicode_ci without success.

https://www.zend.com/en/forums/index.php?t=msg&goto=10510&S=d25345f77...

suggests that I have to specify utf-8 when connecting ie like this:
$set_connection_encodings = array(
                    'character_set_client=utf8'
                    ,'character_set_connection=utf8'
                    ,'character_set_results=utf8'
                    ,'collation_connection=utf8_general_ci'
                    ,'collation_database=utf8_general_ci'
            );

foreach( $set_connection_encodings AS $set_connection_encoding )
{
    $sql = 'SET ' . $set_connection_encoding;
    mysql_query( $sql );

}

But I also see that the recent issue 307 concerns special characters
in name tags, so I wonder if someone could please confirm whether I
need issue 307 to be resolved rather than trying to complicate my
connection code ?

Thanks. Mike


    Doorsturen  
Je moet je aanmelden voordat je berichten kunt plaatsen.
Als je een bericht wilt verzenden, moet je eerst deelnemen aan deze discussiegroep.
Werk je bijnaam bij op de pagina met abonnementsinstellingen voordat je een bericht plaatst.
Je hebt geen toestemming om berichten te plaatsen.
Jason M  
Profiel weergeven   Naar het vertalen Vertaald (origineel weergeven)
 Meer opties 17 nov 2009, 16:11
Van: Jason M
Datum: Tue, 17 Nov 2009 07:11:32 -0800 (PST)
Lokaal: di 17 nov 2009 16:11
Onderwerp: Re: Accents in name tag
When adding special characters to XML such as acutes, graves,
circumflexes note that UTF-8 encoding does NOT support those symbols.

By default XML uses UTF-8 for 8-bit character encoding rather than
ISO-8859-1 (Latin Alphabet # 1) which includes for special characters
(those with accents) such as Â, ë, etc.

If you have the wrong XML encoding type then most XML parsers will
fail to parse the XML.

Try using a different XML encoding that includes those characters such
as ISO-8859-1.
Some details on XML encoding can be found at http://www.w3schools.com/tags/ref_entities.asp

<?xml version="1.0" encoding="ISO-8859-1"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
...
</kml>

--jason

On Oct 19, 5:07 pm, mikemcc wrote:


    Doorsturen  
Je moet je aanmelden voordat je berichten kunt plaatsen.
Als je een bericht wilt verzenden, moet je eerst deelnemen aan deze discussiegroep.
Werk je bijnaam bij op de pagina met abonnementsinstellingen voordat je een bericht plaatst.
Je hebt geen toestemming om berichten te plaatsen.
Einde van berichten
« Terug naar Discussies « Nieuwer onderwerp     Ouder onderwerp »

Discussiegroep maken - Google Discussiegroepen - Google Startpagina - Servicevoorwaarden - Privacybeleid
©2010 Google