Re: [thredds] Wrong character-encoding for opendap and ncWMS getcapabilities in thredds

Hello Heiko,

We think we have this fixed in our 4.5 release, as an examination of the http response header on an ncWMS getCapabilities document shows:

Content-Type: application/xml;charset=UTF-8

Regards,
  Lansing Madry
  Unidata
  Boulder, Colorado

On 4/1/2014 6:57 AM, Heiko Klein wrote:
Hi,

we just recognized a problem with the character encoding in the ncWMS getCapabilities document.

All GetCapablities documents from thredds return a HTTP response header with

Content-Type:    text/xml;charset=ISO-8859-1

while document itself states

<?xml version="1.0" encoding="UTF-8"?>



When adding any non-ASCII characters to the files, e.g. via ncml adding an abstract attribute (UTF-8) with 'sjøiskonsentrasjon' = sea-ice concentration, we get some problems.



On http://thredds-staging.met.no/thredds/wms/geirs_norsk_test/ice/conc_nh_agg?service=WMS&version=1.3.0&request=GetCapabilities sjøiskonsentrasjon is translated to ISO-8859-1 (as stated in charset=, but not as the encoding)



On the corresponding opendap-page: http://thredds-staging.met.no/thredds/dodsC/geirs_norsk_test/ice/conc_nh_agg.html , the content-type is
Content-Type: text/html
without any charset mentioned. The data is send as UTF-8 - (the default is not clear to me). (It's neither clear how attribute character-data translates to netcdf and where to put the _Encoding attribute. But that's a different story...)


The corresponding catalog.xml page is completely correct:
http://thredds-staging.met.no/thredds/test.xml
with
Content-Type:    text/xml;charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>

The corresponding catalog.html page is clearly UTF-8, too.


Best regards,

Heiko

_______________________________________________
thredds mailing list
thredds@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/



  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: