[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[IDV #FGK-734512]: How to write city locations file?
- Subject: [IDV #FGK-734512]: How to write city locations file?
- Date: Sun, 12 Apr 2009 06:31:13 -0600
Hi-
> Full Name: daikan
> Email Address: address@hidden
> Organization: nmc
> Package Version: 2.7a1 build date:2009-04-08 07:07 UTC
> Operating System: Windows XP
> Hardware: Java: home: E:\IDV_2.7a1\jre version: 1.6.0_11 j3d:1.5.2 fcs
> (build4)
> Description of problem: Error reading xml
> Error parsing xml: F:\accident.locs
> Invalid byte 1 of 1-byte UTF-8 sequence.
> Invalid byte 1 of 1-byte UTF-8 sequence. line:2 column:34
You'll need to put the following at the top of your file:
<?xml version="1.0" encoding="ISO-8859-1"?>
The default encoding for XML is UTF-8 which does not support
the chinese characters. I don't have the Chinese language
pack installed so I can't test the display, but this will
avoid the error below. I doubt that the default font
will plot Chinese characters, though.
I think you figured this out, but for your other question, see:
http://www.unidata.ucar.edu/software/IDV/docs/userguide/data/LocationXml.html
for acceptable location formats. We'll look into your netCDF
export error. That is a bug.
Don Murray
> ******************
> Stack trace:
> java.lang.IllegalStateException: Error parsing xml: F:\accident.locs
> Invalid byte 1 of 1-byte UTF-8 sequence.
> Invalid byte 1 of 1-byte UTF-8 sequence. line:2 column:34
>
> at ucar.unidata.xml.XmlUtil.getDocument(XmlUtil.java:1234)
> at ucar.unidata.xml.XmlUtil.getRoot(XmlUtil.java:1180)
> at
> ucar.unidata.metdata.NamedStationTable.createStationTableFromFile(NamedStationTable.java:1297)
> at
> ucar.unidata.idv.control.StationLocationControl.loadXml(StationLocationControl.java:297)
> at
> ucar.unidata.idv.control.StationLocationControl.init(StationLocationControl.java:277)
> at
> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1269)
> at
> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:976)
> at ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:979)
> at ucar.unidata.idv.ControlDescriptor$1.run(ControlDescriptor.java:904)
> at ucar.unidata.util.Misc$3.run(Misc.java:1060)
>
>
>
Ticket Details
===================
Ticket ID: FGK-734512
Department: Support IDV
Priority: Normal
Status: Open