Charge eb3a from 12v dc changer

Hello. I have a gas generator and eb3a does not want to charge from it because it is not pure sine. So I have an idea to buy a 24v 8a dc charger with 5521 cable and 5521 to 7909 adapter. And charge it using a solar panel input.
Will this work?

@nazar1 It was confirmed with the engineer that your approach works.

yes it will work. A low cost way is to get an adjustable voltage power supply from amazon which is $40 or less and then you can adjust the voltage to the maximum charge rate allowed or dial it down to a slower charge is desired.