Oh, this issue has been resolved. I just change charset to TIS620. it's 
workkkkkk.

On Tuesday, December 8, 2020 at 11:44:21 AM UTC+7 surachart seangprasert 
wrote:

> This below is my code and I set thai character in *operator *field name. 
> It's not work. I cannot see any values in this field but I can see value in 
> other fields.
>
> <?php 
> ini_set('display_errors', 1);
> ini_set('display_startup_errors', 1);
> error_reporting(E_ALL);
>
> require_once __DIR__ . '/vendor/autoload.php';
>
> $connectionParams = array(
>     'url' => 'mysql://localhost:3306/xxxx1?charset=UTF8',
>     'user' => 'xxxx',
>     'password' => 'xxxxx',
>     'driver' => 'mysqli',
> );
> $conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
> $conn->beginTransaction();
> try {
>     $conn->insert('iot_scene', array('name' => '1', 'operator' => 
> 'ขหกปป'));
>     $conn->commit();
> } catch (\Doctrine\DBAL\Exception\RetryableException $e) {
>     $conn->rollBack();
>     throw $e;
> } catch (\Exception $e) {
>     $conn->rollBack();
>     throw $e;
> }
> ?>
> test >>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/doctrine-user/53fe9c1a-24ce-4688-a43e-7008e2b041b7n%40googlegroups.com.

Reply via email to