'Problem with special character in controller in Laravel

I am trying to save multiple checkbox values, and its value attributes contain special characters, such as "ç," "ã," and so on. But when I get into my controller and return the $request object, I see that the special characters are not being formatted in utf-8. How can I solve this, please?

HTML

<div class="form-check">
    <input class="form-check-input" name="servicos[]" type="checkbox"
           value="Substituição de piso nos banheiros" id="servicos1">
    <label class="form-check-label" for="flexRadioDefault1">
        Substituição de piso nos banheiros
    </label>
</div>
<div class="form-check">
    <input class="form-check-input" name="servicos[]" type="checkbox"
           value="Instalação de piso na sala e dormitórios" id="servicos2">
    <label class="form-check-label" for="flexRadioDefault1">
        Instalação de piso na sala e dormitórios
    </label>
</div>
<div class="form-check">
    <input class="form-check-input" name="servicos[]" type="checkbox"
           value="Substituição de piso na cozinha" id="servicos3">
    <label class="form-check-label" for="flexRadioDefault1">
        Substituição de piso na cozinha
    </label>
</div>

Controller

return $request->servicos;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source