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

Database error due to unicode (Thai) string in map location field: "อำเภอปากช่อง นครราชสีมา" #1514

Open
sentry-io bot opened this issue May 4, 2021 · 2 comments

Comments

@sentry-io
Copy link

sentry-io bot commented May 4, 2021

Sentry Issue: MAPKNITTER-4N

Mysql2::Error: Incorrect string value: '\xE0\xB8\xAD\xE0\xB8\xB3...' for column 'location' at row 1
  app/controllers/maps_controller.rb:48:in `create'
    if @map.save
...
(139 additional frame(s) were not displayed)

ActiveRecord::StatementInvalid: Mysql2::Error: Incorrect string value: '\xE0\xB8\xAD\xE0\xB8\xB3...' for column 'location' at row 1: INSERT INTO `maps` (`name`, `lat`, `lon`, `created_at`, `updated_at`, `description`, `author`, `zoom`, `location`, `license`, `user_id`, `slug`) VALUES ('baan1699', 14.555765, 101.307485, '2021-05-04 07:30:53', '2021-05-04 07:30:53', 'yo', 'huirantoh', 14.0, '169 Moo 10, Gudkla-Phansuk Rd, Tambon Moosi, Pak Chong, อำเภอปากช่อง นครราชสีมา 30130, Thailand', 'publicdomain', 5550, 'baan1699')
@jywarren jywarren changed the title ActiveRecord::StatementInvalid: Mysql2::Error: Incorrect string value: '\xE0\xB8\xAD\xE0\xB8\xB3...' for column 'location' at row... Database error due to unicode (Thai) string in map location field: "อำเภอปากช่อง นครราชสีมา" May 4, 2021
@icarito
Copy link
Member

icarito commented May 4, 2021

We may have to migrate like we did with Plots2, since this DB is a lot smaller it should be easier.

@jywarren
Copy link
Member

jywarren commented May 4, 2021

OK!

This failed due to the unicode text in the location field:

"169 Moo 10, Gudkla-Phansuk Rd, Tambon Moosi, Pak Chong, อำเภอปากช่อง นครราชสีมา 30130, Thailand"

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

No branches or pull requests

2 participants