Closed grepsuzette closed 1 year ago
It's been a while, but I think you can (and will probably prefer to) set the default encoding when the MySQL database is created. That said, someone needs to check that all targets are consistently sending UTF-8.
Had prematurely proposed a simple PR https://github.com/HaxeFoundation/record-macros/pull/52 to add a test about unicode, since I was experiencing problems and no documentation about it.
Current target is php+mysql. Turns out I find why characters were shown as "????", it's because I needed to set the Table and the Column to utf8mb4.
Since I don't think this commands a pull request after all, I will share it here, and maybe it can open discussion about whether there is any better solution (something not requesting an ALTER request):
I am imagining 'maybe' a
@:unicode
markup could be used so that the ALTER lines are unneeded. But this is probably a long topic. Meanwhile at least this is searchable if anybody has an issue.