Skip to content

Emojis in Comments #2077

Open
@JoeCohen

Description

@JoeCohen

Emojis throw errors when creating Comments.
The code block below shows what happened locally when I clicked Create after putting an emoji in a Summary. The same thing happens for emojis in the Comment body.
Not sure what to do about this:

  • Allow emojis, vs
  • Prohibit emojis but don't throw Errors.
ActiveRecord::StatementInvalid in CommentsController#create
Trilogy::ProtocolError: 1366: Incorrect string value: '\xF0\x9F\xA5\xB8' for column 'summary' at row 1
Rails.root: /Users/joe/mushroom-observer

Application Trace | Framework Trace | Full Trace
Request
Parameters:

{"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "comment"=>{"summary"=>"asdf🥸", "comment"=>""}, "commit"=>"Create", "q"=>"1oaSB", "target"=>"547363", "type"=>"Observation"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    ErrorThrows an Error

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions