On Mon, 4 Nov 2024, Sven Schreiber wrote:
Am 04.11.2024 um 17:28 schrieb klaus.hasenbach(a)web.de:
> but surprisingly the bundl request does not work with all data,
for
> instance not for
>
> provider = "OECD"
> database = "DSD_IMTS@DF_IMTS"
> bundle spec = defbundle("mask","DNK.W.X.C.M.XDC.Y.N")
> bs = dbnomics_get_multiple(provider, database, 1000, 0, spec)
OK I see, and I agree it's surprising.
I checked what is returned from the relevant gretl-dbnomics internals, and
I'm seeing:
? =req.output
{"_meta":{"args":{"align_periods":false,"dataset_code":"DSD_\u00e2\u0080\u008bIMTS@DF_\u00e2\u0080\u008bIMTS","dimensions":{},"facets":false,"format":"json","limit":1000,"metadata":false,"observations":true,"offset":0,"provider_code":"OECD","q":"","series_code":"DNK.W.X.C.M.XDC.Y.N"},"version":"22.1.17"},"message":"Dataset
'OECD\/DSD_\u00e2\\x80\\x8bIMTS@DF_\u00e2\\x80\\x8bIMTS' not found"}
So I believe on the dbnomics server side they are inserting weird unicode
characters (the \u00e2\u0080\u008b above), rendering the resulting json
invalid. I have no idea where that comes from or why, my current guess would
simply be it's a bug over there.
The "weird unicode characters" may have been inserted by Klaus's
editor, or in email transmission, or if the database name was copied
from a browser displaying the dbnomics website, via that operation.
Anyway, if I try Klaus's example as copied directly from the
gretl-users list posting viewed in Firefox, it doesn't work. But if
I replace the weirdos with plain ASCII underscores:
database = "DSD_IMTS@DF_IMTS"
it works fine.
Allin