mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 05:15:49 +03:00
[GH-ISSUE #99] Support for variable charset and collation #68
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DBDiff#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pasmat on GitHub (Jun 19, 2020).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/99
I am using charset utf8mb4 and collation utf8mb4_swedish_ci on both target and source databases.
When I am using some characters that require multibyte encoding, such as emoji's 👋, the tool will treat emoji's as question marks of some sort.
The charset and collation is hardcoded in DBManager.php
'charset' => 'utf8', 'collation' => 'utf8_unicode_ci'I am not sure if there's a general charset that could be used that would account for all cases, such as the uf8mb4, or should it be better to let user define them, or detect them from source and target databases.
I changed the charset and collation by hand, and it fixed it for me.
@SanaAnsari09 commented on GitHub (Jul 13, 2021):
Did you build the dbdiff folder again after making changes