I downloaded the file and tried to open it using an editor with UTF-8 encoding. It reported illegal character sequences but did not point out which ones.timer wrote: ↑Tue Sep 12, 2023 1:32 pmif in hosts file existscheck direct download from origin server http://addons.oolite.org/api/1.0/overviewCode: Select all
195.74.38.129 oolite.org addons.oolite.org
I got corrupted (bad utf-8 symbol) file.
At this moment, after downloading, my script (on VPS) fix this and then upload file to GitHub.
But what happened - I don't know
My actions have no any effect on the old server.
Running file reveals not much either:
Code: Select all
$ curl -o overview.plist http://addons.oolite.org/api/1.0/overview
$ file overview.plist
overview.plist: ASCII text, with very long lines (456), with CRLF, LF line terminators
$
If we analyze a bit further, the code that generates the file for sure did not change. We have noone to access that old server.
I guess it is a single machine running a webserver with PHP and a database. These installation parts are out of our hands - but it is likely the old provider is still patching the machine. A newer version of the database, the database driver or the PHP engine might show impact.
But actually I more believe the code dumbly pulls data from the DB and concatenates into an output stream, not really looking at any specific encoding. And the problem then can even come from the payload, which means the database entries. I cannot blame anyone today for using the all-present international character sets we have. Which does not make the whole story any better...
Then I loaded the file through my own plist parser - and it consumes it happily. Not a single character issue. But why? Is it reading UTF-8? (why can the editor then not read it?) Or is it using some special encoding (where the platform default encoding definitely is UTF-8!). This is a nut to crack.
It might be easier to take it from scratch: Let's find out what Oolite needs to digest, then ensure we can deliver such a file.
@DEVs, could you please confirm the requirements?