Menu

#147 HTML generated in encoding latin1

open
5
2018-02-04
2012-02-02
Kurt Dupel
No

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.

Discussion

  • Andras Soltesz

    Andras Soltesz - 2018-02-04

    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.

     
    • Andras Soltesz

      Andras Soltesz - 2018-02-04

      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

       

Log in to post a comment.