Showing posts with label import. Show all posts
Showing posts with label import. Show all posts

Wednesday, December 16, 2009

CocoaTech's Path Finder - Versatile Encoding Helper

Path Finder Save as SJIS for ExcelCocoaTech's Path Finder tool is a versatile Finder replacement. One problem that you might have if you do any work with data, is importing CSV files that are in the UTF-8 format, and which contain multi-byte characters such as Japanese, into Excel.

To import a UTF-8 CSV into Excel, you need to re-save into a format that Excel will accept, because it ironically does not accept the quite-universal UTF-8. I tried opening my UTF-8 CSV with TextMate and Text Edit to do the re-save into a different encoding, but neither of those allow me to save to Shift JIS, which renders Japanese characters so Excel can import them properly.

I saw that Path Finder has a native Text Editor, and thought I would try it. Sure enough, it allows you to re-save a file in Shift JIS and with a TXT extension, which can then easily be imported into Excel, unmunged.

Thanks CocoaTech!

Tuesday, August 26, 2008

Exporting Google's "My Maps" as KML

I have been spending some time making Google Maps in "My Maps", such as this bike route down the Sakai river, then along the Shonan coast, and back home.

Some applications, like Google Earth, use KML data to represent map routes. There is an easy link now, in My Maps, to click and open the map directly in Google Earth. But if you need the KML data for importing elsewhere, you can save it this way:

First, in one of your maps in Google My Maps, copy the URL for "View In Google Earth" by right clicking the link and copying the URL. On a mac, it's "copy link location".

Then in a blank browser window, enter the URL in the address bar:
http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&output=nl&msid=103784915361440638280.00045507229fde71c84ca

Now change the output by switching output=nl to output=kml. Entering the URL will give an option to save. Save the KML file somewhere on your drive, and then you can import it elsewhere.