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

Fix #80, by using utf8 for all characters #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmetzger
Copy link
Contributor

No description provided.

@@ -16,17 +16,17 @@ CREATE TABLE `comment` (
-- Create syntax for TABLE 'package'
CREATE TABLE `package` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note to future self / other maintainers: these changes are untested.

@rmetzger
Copy link
Contributor Author

Applied the fix to the "production" server :)

Copy link
Contributor

@sorahn sorahn left a comment

Choose a reason for hiding this comment

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

After chatting with @rmetzger we believe this issue was actually caused by the mariadb docker setup.

Proposed fix is to add the following code to the database section of the docker compose file so that the database is actually created as it should be.

    commmand:
      - --character-set-server=utf8mb4
      - --collation-server=utf8mb4_unicode_ci

@@ -104,6 +104,7 @@ exports.post = [
message: `the package id "${ctx.request.body.slug}" is already in use`,
});
default:
console.log("Caught exception", e);
Copy link
Contributor

Choose a reason for hiding this comment

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

I can help with this, but it probably just makes sense to have logs happen for every time there is a ctx.throw (we don't need to to this now, but maybe write an issue for the future)

@rmetzger rmetzger changed the title Fix #80, by using uft8 for all characters Fix #80, by using utf8 for all characters Nov 18, 2019
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