Re: a little bit offlist: charakter tables
Re: a little bit offlist: charakter tables
- Subject: Re: a little bit offlist: charakter tables
- From: Emmanuel <email@hidden>
- Date: Tue, 17 Dec 2002 20:35:08 +0100
At 2:49 PM +0100 17/12/02, Frank Miedreich wrote:
Hi,
if you parse the xml file you should find that the first line
specifies the character encoding of the xml file. Something like:
<?xml version="1.0" encoding="iso-8859-1"?>
Often xml files are encoded in either Unicode or UTF-8, both can be
converted with TEC (Text Encoding Converter, part of the Mac OS). I
think there is an osax that provides an interface to TEC, search
osaxen.com.
For a fast solution, if you've got Smile (the cool AppleScript editor
by the Satimage company which is free and includes a lot of gorgeous
features FYI), you may copy the following line and run it:
make new text window with properties {path name:item 1 of
(navchoose file with open packages), +class WaRe;:false, +class
MoSt;:true, +class TeEn;:513}
This really opens the file: you see it "as Mac" and it remains stored
"as UTF-8".
(you can replace "item 1 of blah" with the reference to your file)
(WaRe = Want Resource fork
MoSt = MonoStyled
TeEn = Text Encoding)
Opening UTF-8's will be a menu command in the next version of Smile.
Emmanuel
from Satimage
<
http://www.satimage-software.com>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.