Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Missing UTF-8 Encoding in REST API | Weather Forecast Municipalities w/ language DE #486

Open
manuel10503 opened this issue Jul 7, 2024 · 2 comments
Assignees

Comments

@manuel10503
Copy link

There is an issue with the REST API accessible via the URL https://tourism.opendatahub.com/v1/Weather/Forecast?language=de where UTF-8 encoding is missing.

Expected Behavior:
The API should correctly encode special characters in UTF-8

@manuel10503
Copy link
Author

Example: The weather description has not been properly converted to UTF-8 (WeatherDescription).

This is a response code from the API.

[{
  "_Meta": {
    "Id": "forecast_021013",
    "Type": "weatherforecast",
    "LastUpdate": "2025-01-01T00:00:00+00:00",
    "Source": "siag",
    "Reduced": false,
    "UpdateInfo": null
  },
  "Self": "https://tourism.api.opendatahub.com/v1/Weather/forecast_021013",
  "LocationInfo": {
    "RegionInfo": null,
    "TvInfo": null,
    "MunicipalityInfo": {
      "Self": "https://tourism.api.opendatahub.com/v1/Municipality/F6504AD16C294686A65F310809E80E1F",
      "Id": "F6504AD16C294686A65F310809E80E1F",
      "Name": {
        "de": "Bruneck"
      }
    },
    "DistrictInfo": null,
    "AreaInfo": null
  },
  "Date": "2025-01-01T00:00:00+00:00",
  "Id": "forecast_021013",
  "Language": "de",
  "LicenseInfo": {
    "License": "CC0",
    "LicenseHolder": "https://provinz.bz.it/wetter",
    "Author": "",
    "ClosedData": false
  },
  "FirstImport": "2025-01-01T09:13:25+00:00",
  "LastChange": "2025-01-01T09:13:25+00:00",
  "GpsInfo": null,
  "MunicipalityIstatCode": "021013",
  "Shortname": "Bruneck",
  "MunicipalityName": {
    "de": "Bruneck"
  },
  "ForeCastDaily": [
    {
      "Date": "2024-12-31T23:00:00+00:00",
      "MinTemp": -11,
      "MaxTemp": 2,
      "SunshineDuration": 9,
      "PrecipitationProbability": 5,
      "Precipitation": 0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": {
        "de": "Wolkenlos"
      },
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png"
    },
    {
      "Date": "2025-01-01T23:00:00+00:00",
      "MinTemp": -10,
      "MaxTemp": 1,
      "SunshineDuration": 1,
      "PrecipitationProbability": 30,
      "Precipitation": 1,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": {
        "de": "Stark bew�lkt"
      },
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png"
    },
    {
      "Date": "2025-01-02T23:00:00+00:00",
      "MinTemp": -9,
      "MaxTemp": 0,
      "SunshineDuration": 8,
      "PrecipitationProbability": 30,
      "Precipitation": 1,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": {
        "de": "Heiter"
      },
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png"
    },
    {
      "Date": "2025-01-03T23:00:00+00:00",
      "MinTemp": -14,
      "MaxTemp": -2,
      "SunshineDuration": 8,
      "PrecipitationProbability": 5,
      "Precipitation": 0,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": {
        "de": "Heiter"
      },
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png"
    },
    {
      "Date": "2025-01-04T23:00:00+00:00",
      "MinTemp": -10,
      "MaxTemp": 0,
      "SunshineDuration": 2,
      "PrecipitationProbability": 10,
      "Precipitation": 0,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": {
        "de": "Stark bew�lkt"
      },
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png"
    },
    {
      "Date": "2025-01-05T23:00:00+00:00",
      "MinTemp": null,
      "MaxTemp": null,
      "SunshineDuration": 0,
      "PrecipitationProbability": 1,
      "Precipitation": 0,
      "WeatherCode": null,
      "WeatherDesc": null,
      "WeatherDescription": null,
      "WeatherImgUrl": null
    }
  ],
  "Forecast3HoursInterval": [
    {
      "Date": "2025-01-01T05:00:00+00:00",
      "Temperature": -9.3,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-01T08:00:00+00:00",
      "Temperature": -6.7,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 45,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-01T11:00:00+00:00",
      "Temperature": 1.6,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 315,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-01T14:00:00+00:00",
      "Temperature": -0.4,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 0,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-01T17:00:00+00:00",
      "Temperature": -5.1,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-01T20:00:00+00:00",
      "Temperature": -6.9,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-01T23:00:00+00:00",
      "Temperature": -8.6,
      "PrecipitationProbability": 5,
      "Precipitation": 0.1,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-02T02:00:00+00:00",
      "Temperature": -9.2,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png",
      "WindDirection": 45,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-02T05:00:00+00:00",
      "Temperature": -10.2,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-02T08:00:00+00:00",
      "Temperature": -6.8,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "c",
      "WeatherDesc": "Wolkig",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_3.png",
      "WindDirection": 0,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-02T11:00:00+00:00",
      "Temperature": -2.0,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png",
      "WindDirection": 315,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-02T14:00:00+00:00",
      "Temperature": -1.8,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-02T17:00:00+00:00",
      "Temperature": -2.3,
      "PrecipitationProbability": 10,
      "Precipitation": 0.1,
      "WeatherCode": "e",
      "WeatherDesc": "Bedeckt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_5.png",
      "WindDirection": 125,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-02T20:00:00+00:00",
      "Temperature": -1.6,
      "PrecipitationProbability": 25,
      "Precipitation": 0.4,
      "WeatherCode": "e",
      "WeatherDesc": "Bedeckt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_5.png",
      "WindDirection": 145,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-02T23:00:00+00:00",
      "Temperature": -3.2,
      "PrecipitationProbability": 30,
      "Precipitation": 0.6,
      "WeatherCode": "e",
      "WeatherDesc": "Bedeckt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_5.png",
      "WindDirection": 160,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-03T02:00:00+00:00",
      "Temperature": -2.6,
      "PrecipitationProbability": 30,
      "Precipitation": 0.4,
      "WeatherCode": "e",
      "WeatherDesc": "Bedeckt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_5.png",
      "WindDirection": 150,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-03T05:00:00+00:00",
      "Temperature": -4.3,
      "PrecipitationProbability": 5,
      "Precipitation": 0.1,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png",
      "WindDirection": 105,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-03T08:00:00+00:00",
      "Temperature": -3.8,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png",
      "WindDirection": 135,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-03T11:00:00+00:00",
      "Temperature": -0.9,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 285,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-03T14:00:00+00:00",
      "Temperature": -2.8,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 290,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-03T17:00:00+00:00",
      "Temperature": -6.9,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 30,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-03T20:00:00+00:00",
      "Temperature": -9.4,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 90,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-03T23:00:00+00:00",
      "Temperature": -10.7,
      "PrecipitationProbability": 5,
      "Precipitation": 0.1,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 90,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-04T02:00:00+00:00",
      "Temperature": -12.7,
      "PrecipitationProbability": 5,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 105,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-04T05:00:00+00:00",
      "Temperature": -14.2,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 105,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-04T08:00:00+00:00",
      "Temperature": -10.6,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "a",
      "WeatherDesc": "Wolkenlos",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_1.png",
      "WindDirection": 75,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-04T11:00:00+00:00",
      "Temperature": -4.0,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png",
      "WindDirection": 180,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-04T14:00:00+00:00",
      "Temperature": -3.5,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png",
      "WindDirection": 150,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-04T17:00:00+00:00",
      "Temperature": -7.0,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "b",
      "WeatherDesc": "Heiter",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_2.png",
      "WindDirection": 120,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-04T20:00:00+00:00",
      "Temperature": -9.1,
      "PrecipitationProbability": 5,
      "Precipitation": 0.0,
      "WeatherCode": "c",
      "WeatherDesc": "Wolkig",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_3.png",
      "WindDirection": 115,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-04T23:00:00+00:00",
      "Temperature": -10.4,
      "PrecipitationProbability": 5,
      "Precipitation": 0.1,
      "WeatherCode": "c",
      "WeatherDesc": "Wolkig",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_3.png",
      "WindDirection": 105,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-05T02:00:00+00:00",
      "Temperature": -9.9,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "c",
      "WeatherDesc": "Wolkig",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_3.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-05T05:00:00+00:00",
      "Temperature": -9.1,
      "PrecipitationProbability": 5,
      "Precipitation": 0.1,
      "WeatherCode": "c",
      "WeatherDesc": "Wolkig",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_3.png",
      "WindDirection": 90,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-05T08:00:00+00:00",
      "Temperature": -6.4,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png",
      "WindDirection": 315,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-05T11:00:00+00:00",
      "Temperature": -1.8,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png",
      "WindDirection": 285,
      "WindSpeed": 1
    },
    {
      "Date": "2025-01-05T14:00:00+00:00",
      "Temperature": -0.9,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "c",
      "WeatherDesc": "Wolkig",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_3.png",
      "WindDirection": 270,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-05T17:00:00+00:00",
      "Temperature": -4.3,
      "PrecipitationProbability": 1,
      "Precipitation": 0.0,
      "WeatherCode": "c",
      "WeatherDesc": "Wolkig",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_3.png",
      "WindDirection": 225,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-05T20:00:00+00:00",
      "Temperature": -2.7,
      "PrecipitationProbability": 5,
      "Precipitation": 0.1,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png",
      "WindDirection": 45,
      "WindSpeed": 0
    },
    {
      "Date": "2025-01-05T23:00:00+00:00",
      "Temperature": -1.1,
      "PrecipitationProbability": 10,
      "Precipitation": 0.2,
      "WeatherCode": "d",
      "WeatherDesc": "Stark bew�lkt",
      "WeatherDescription": null,
      "WeatherImgUrl": "https://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/icon_4.png",
      "WindDirection": 15,
      "WindSpeed": 0
    }
  ]
}]

@clezag
Copy link
Member

clezag commented Jan 2, 2025

Hey, thanks for your report!
Transferring this over to the tourism API

@clezag clezag transferred this issue from noi-techpark/bdp-core Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants