Details
Description
When importing clients from WHMCS, if they have names in UTF-8 encoded languages, such as Chinese, they are stored in the database as garbage characters.
In the WhmcsMigrator::decode() function, add the following code block before the return statement.
if (mb_detect_encoding($str) == 'UTF-8') {
return html_entity_decode($str, ENT_QUOTES, 'UTF-8');
}
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 5.1.0-b1 [ 11703 ] | |
| Affects Version/s | 5.1.0-b1 [ 11703 ] |
| Rank | Ranked higher |
| Rank | Ranked higher |
| Sprint | 5.1.0 Sprint 4 [ 131 ] |
| Rank | Ranked higher |
| Assignee | Jonathan Reissmueller [ jonathan ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Status | In Progress [ 3 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Status | In Review [ 5 ] | Closed [ 6 ] |