UTF-8 Encoding#10
UTF-8 Encoding#10ideonexus wants to merge 1 commit intoproject-open-data:masterfrom ideonexus:master
Conversation
Encoding strings to UTF-8 prevents the return of null values when a database value contains incompatible characters.
There was a problem hiding this comment.
Does this need to be $this->utf8_encode($value)?
|
@waldoj are you able to test this by chance? |
|
I'd need a use case to test this. Would this be when a database is encoding its contents as, say, ASCII, and a Unicode character had been included in the content? |
|
I looked into it further based on your question, and it may actually be a non-issue. The database tables are utf8, but I just noticed the database itself is latin. That might have been causing the problem. I've got work the next three days, but I'll do some test cases over the long weekend. What was happening is chinese characters and microsoft magic quotes where breaking the response. If modifying the database to utf8 and not just the tables prevents the problem, I'll let you know. Thanks, ry |
|
That's really helpful—thanks so much for looking into this! |
Encoding strings to UTF-8 prevents the return of null values when a
database value contains incompatible characters.