In your editor, it depends. What are you using to save this file?
What are you using to edit the code? Usually an option when saving the file or under "encoding" or something - that said why not use UTF8?
PHPStorm using UTF8 by default, so even you changed you might find a need to change the default encoding for a specific file.
You might also need to set PHP in that charset as some of the server set UTF8 by default. Tho I don't quite remember if Laravel has this setting somewhere.
As a quick fix.
header('Content-Type: text/html; charset=utf-8');
awsp said:
PHPStorm using UTF8 by default, so even you changed you might find a need to change the default encoding for a specific file.
You might also need to set PHP in that charset as some of the server set UTF8 by default. Tho I don't quite remember if Laravel has this setting somewhere.
As a quick fix.
header('Content-Type: text/html; charset=utf-8');
Sorry, i have alredy test it... but don't work... but thanks!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community