Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add postgresql metadata support and force utf8 encode on non-utf8 locale #1637

Merged
merged 1 commit into from
Apr 18, 2020

Conversation

clojurians-org
Copy link
Contributor

add support for postgresql metadata and enforce utf8 encode on various machine.

it seesm mysql run on non-utf8 locale will lead to chinese messy character to display.
some chinese friend report it to me even in docker setup.

so i force the utf8 in my script.
anyway, i can enforce utf8 for database using the following statement for database setup and gms ebean connection.

echo "CREATE DATABASE datahub default character set utf8" | mysql -u root -S /nix/var/run/mysqld.sock

export EBEAN_DATASOURCE_URL="jdbc:mysql://localhost:3306/datahub?useSSL=false&useUnicode=yes&characterEncoding=UTF-8"

Copy link
Contributor

@mars-lan mars-lan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@mars-lan mars-lan merged commit c97d3fc into datahub-project:master Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants