Coder Social home page Coder Social logo

Comments (4)

mattstauffer avatar mattstauffer commented on May 26, 2024

Tried to manually add the emoji to the installation instructions column just to see if the database supported it and got this error:

image

It's a text field, char set utfmb4, collation utf8mb4_unicode_ci

from novapackages.

mattstauffer avatar mattstauffer commented on May 26, 2024

Both my local and the production tables have the same setup:

MySQL 5.7
column character_set utf8mb4
column collation mtf8mb4_unicode_ci
table DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

I can insert an emoji into the instructions column of my local but not the production. WTF?

from novapackages.

marcusmoore avatar marcusmoore commented on May 26, 2024

Tried to manually add the emoji to the installation instructions column just to see if the database supported it and got this error:

@mattstauffer I just realized that TablePlus doesn't seem to default to using the table's character set but you can change it via Connection -> View Using Encoding:

image

Locally, TablePlus' View Using Encoding was set to utf8 and showed ? for emojis:
image

but when I switched it to utf8mb4 it displayed the emojis correctly:
image


My browser shows emojis locally so I'm wondering if we check the production database in "utf8mb4" mode in TablePlus, do we see ? or emojis?

from novapackages.

mattstauffer avatar mattstauffer commented on May 26, 2024

.... regardless of that, i just went to test it and now ... it just worked?

What the actual hell.

image

from novapackages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.