intossh@gmail.com's avatar

Laravel Sail > Tinker - can't type chars with accents

Hello, I recently switched to using Laravel Sail. One problem I found is that when I do sail artisan tinker I can't type (nor paste) text with accents/diacritics (for example š,č,ř,ž,ý,á). In normal php artisan tinker it works just fine.

I tried using Terminus, as well as standard Windows CMD.

Am I missing something? Do I need to change some encoding in the Sail? Thank you

0 likes
3 replies
pejuko's avatar

Hi, you need to edit docker-compose.yml section services -> laravel.test -> environment and add LANG: 'C.UTF-8'.

1 like

Please or to participate in this conversation.