This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi daikan- A correction to my previous message: You need to put the following in your XML file: <?xml version="1.0" encoding="GB2312"?> The GB2312 supports the chinese characters. Also, the default font will not display the Chinese characters. If you use the Layout model instead of the predefined layout, the Chinese characters will plot. You may have to play around with the font size to get them to plot clearly. Don Murray > > 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