None of the portable radio chargers are designed to run the radio. Especially the one supplied with it! They're just designed to charge the radio, and do it best with the radio powered down (after first turning on and selecting charge of course).
That out of the way, if the jack fits and it the same polarity (it's almost certain to be) it'll be fine.
I charge my 817 from whatever I have to hand. The FT2 charger for example is the same size barrel and output.
I have a USB type C power delivery to barrel adaptor too that kicks out 12V at whatever current the USB power supply can deliver and does the job. Very handy to charge my radios from a powerbank on the go, and I can travel with just my phone charger to do everything.
?
I've also fitted an Anderson Powerpole adaptor to one of my 817s (printed and made at home, but commercial offerings are available) and then it can just charge from the shack supply at home, the club, wherever. Those shack supplies are outputting 13.8V.
Similarly I've made a USB type C to powerpole adaptor, and that'll run the radio off some of my powerbanks.
I've also put powerpoles on an old internet router power supply that kicks out 12V, and that charges the batteries fine.
?
All the radio wants is something like 10V - 16V DC in and it'll be happy, but anything over 12V is just more heat dissipated in the regulation circuitry inside the radio. 10v might not fully charge the batteries, but it'll charge them to 10V.
?
Hope that helps.
Richard M0RIQ