randomnoun / yaml-combine-maven-plugin

A maven plugin to combine swagger files in ways that swagger doesn't support out of the box
https://randomnoun.github.io/yaml-combine-maven-plugin/
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

issue with content type of output file #3

Open gcornacchia opened 2 weeks ago

gcornacchia commented 2 weeks ago

Hi, the output file resulting from the combination of several yaml files has an ANSI encoding, how can I keep utf-8 as the original yaml files?

gcornacchia commented 2 weeks ago

@knoxg

knoxg commented 2 weeks ago

Hi @gcornacchia.

I can look at adding an encoding parameter but in the meantime you could try setting the default encoding on the commandline via

-Dfile.encoding=UTF-8

( from https://stackoverflow.com/questions/1006276/what-is-the-default-encoding-of-the-jvm ). That page also suggests setting the LC_ALL environment variable but I have tried either of these suggestions so not sure if either will work.

gcornacchia commented 2 weeks ago

hi @knoxg, checkout my PR https://github.com/randomnoun/yaml-combine-maven-plugin/pull/4 and tell me what do you think

knoxg commented 1 week ago

Looks great, thanks.

Will merge that in & cut a new release

knoxg commented 1 week ago

Released v2,0,8 , should appear in maven central in a few hours