Problem in Arabic coding in kml

117 views
Skip to first unread message

Ahmed Badawy

unread,
Oct 21, 2009, 3:16:17 AM10/21/09
to KML Developer Support - Advanced Support for KML
Dear all;
I have problem in Arabic coding in kml
Where when I create KML file . it's working fine without any
problem , if i it contain only English in description place mark
but If I start using Arabic it showing like this
ÊÌÑÈÉ ááßÊÇÈÉ ÈÇááÛÉ Ç
So Can anybody help me ,
which right coding should be using
or which change should be made to let KML File support Arabic Text
Thanks and Regards
Ahmed Badawy

this sample from My KML

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://
www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2"
xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>KmlFile</name>
<StyleMap id="msn_ylw-pushpin">
<Pair>
<key>normal</key>
<styleUrl>#sn_ylw-pushpin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#sh_ylw-pushpin</styleUrl>
</Pair>
</StyleMap>
<Style id="sh_ylw-pushpin">
<IconStyle>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</
href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Style id="sn_ylw-pushpin">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</
href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Placemark>
<name>English Name</name>
<description>Now i will Start write Arabic Desc.
هذه تجربة للكتابة باللغة العربية</description>
<LookAt>
<longitude>31.22627484845693</longitude>
<latitude>31.18662734262538</latitude>
<altitude>0</altitude>
<range>387.0845523253923</range>
<tilt>0</tilt>
<heading>0.002387822146411812</heading>
<altitudeMode>relativeToGround</altitudeMode>
</LookAt>
<styleUrl>#msn_ylw-pushpin</styleUrl>
<gx:balloonVisibility>1</gx:balloonVisibility>
<Point>
<coordinates>31.22627484845693,31.18662734262538,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>

Mohamed Yehia

unread,
Dec 29, 2012, 4:36:41 AM12/29/12
to kml-suppor...@googlegroups.com
I have the same problem & i need to know how to fix?

Haytham Osman

unread,
Feb 15, 2013, 7:48:11 AM2/15/13
to kml-suppor...@googlegroups.com
I Have same this problem

Aziz sa

unread,
Mar 3, 2013, 1:46:31 PM3/3/13
to kml-suppor...@googlegroups.com
I Have same this problem

miggy

unread,
Mar 4, 2013, 5:21:14 AM3/4/13
to kml-suppor...@googlegroups.com
Hello all,

I think the problem is with your editor configuration.
I use Notepad++.
I created a new document in Notepad++.
Then I changed the Notepad++ Encoding to UTF-8.
Then I pasted your KML into NotePad++, saved it and opened it in GoogleEarth.
It shows fine (see attached)

I think that if your editor is using a different encoding than UTF-8 (i.e. ISO-8859-1, Windows-1252 etc) then the discrepancy could come from that difference.

Hope this helps.

Regards,
miggy
ArabicKML.JPG
Message has been deleted

Aziz sa

unread,
Apr 25, 2013, 8:23:43 AM4/25/13
to kml-suppor...@googlegroups.com

لانشاء ملف Kml مع سكريبت عرب افتح الملف بواسطة Notepad المفكرة واحفظه باسم مع اختيار Encoding او Utf-8 اسفل صندوق الحفظ
لانشاء ملف من Vba من قاعدة بيانات ،مع تحديد Unicode اللغة العربية او اي لغة  ِبامكانك مراسلتي على بريدي الالكترونيaziz...@gmail.com
Reply all
Reply to author
Forward
0 new messages