DoubleByte Characters
With double byte characters. I am writing to oauth_client table with collation utf8mb4_unicode_ci for client_id. The db connection is given below:-
$mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); $mysqli->set_charset("utf8"); // !important!
On running the token.php, it copies the client_id over to oauth_access_tokens table. However, the utf8 character set is not preserved (although it doesn't break the oauth2 flow)
Question: How do I enable support for double byte characters for client_id?
I do not see how this is a limitation of this library. It seems like this should be handled in your Storage implementation
The larger picture is: if tags of website is utf8, then database's character sets should follow suit. My knowledge of the entire library is still rudimentary, not enough to implement a global character set update.
To conform: Is Storage the only place that requires tweaking?
Honestly, I am not clear on what the issue is that you are describing. But as I do not know of anywhere in the library that would prevent storing UTF-8 characters, I believe this is an issue with your specific implementation.
This library does not concern itself with how you store the information, as almost every project will have its own way of doing this. This is why the storage interfaces exist. I would suggest using an ORM such as Doctrine or Propel, and seeing if utf-8 issue is handled properly in there.
If you DO find where the problem is occuring, and its an issue with the library (say, the request object), then please reopen this issue.
Also, this might address your problem:
http://stackoverflow.com/questions/4361459/php-pdo-charset-set-names
Try passing charset=utf8 in your connection string