HTML generated in encoding latin1
Brought to you by:
johncurrier
I've noticed the generated HTML has charset=ISO-8859-1 set in the header and all accent characters are converted to "?". The generated XML file has UTF-8 encoding, so it's not a problem with the DB encoding.
I'm using PostgreSQL 9.1 with a database in UTF-8 encoding and UTF-8 locale in my system (up-to-date ArchLinux).
cmd:
java -jar schemaSpy.jar -t pgsql -db XXXX -s public -host localhost -u postgres -hq -o ../schema -dp postgresql.jdbc4.jar
Is the output encoding hardcoded? I couldn't find any switch to set it.
I have the same problem. It seems that the charset is hardcoded and the HTML looses accented characters when it is written to disk, so it is not recoverable after generation.
This problem seems to be solved in SchemaSpy 5.0.
Use the "-charset UTF-8" parameter and the resulting HTML will be encoded in UTF-8