Closed removogel closed 2 years ago
Take a look at the IANA Language Registry that is referenced by clause 2.1.1 of RFC5646.
While DEU
is a valid ISO-3166 country code, the IANA language code for German is de
.
Hi @paulhiggs,
Ah, I see now, thanks for clearing that up for me.
issue originally from @MThomas98
When querying against https://csr.dtv.fi/api/query using the 3 letter language code format (e.g. "deu") a 400 response is given, whilst queries using the 2 letter format (e.g. "de") work as expected.
From A177 Section 5.2.10:
And RFC 5646 defines language as
language = 2*3ALPHA
, so 3 letter codes should be accepted.The following returns a 400 error: https://csr.dtv.fi/api/query?TargetCountry=DEU&Delivery%5B%5D=dvb-dash&Delivery%5B%5D=dvb-t&Language=deu whilst the following works as expected: https://csr.dtv.fi/api/query?TargetCountry=DEU&Delivery%5B%5D=dvb-dash&Delivery%5B%5D=dvb-t&Language=de