New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF8 problem in CSV export #188
Comments
If it goes right with xls, than it could be an issue with the csv writer of PHPExcel. Did you check their issues and forum for this error? |
Yes, I did check and foud questions, but just for import behaviour. Excel::create('New file', function($excel) { |
Ah you are using a view. Try including |
Sorry, I forgot to attach files in hte last comment. |
can any one tell me step by step in exporting laravel excel On Thu, Aug 7, 2014 at 2:07 AM, Waister Nunes notifications@github.com
|
You can find our extensive documentation at: http://www.maatwebsite.nl/laravel-excel/docs @waister Are you sure the characters you get from the database (I guess they come from there) are UTF-8 encoded? |
I tested it again with using , when I open the csv file in a text-editor the characters look fine. |
@Maatwebsite Including worked for me. Thanks! |
@MaatwebsiteSupport |
Also, you can try utf8_encode(string) before writing to a cell. |
Did anyone solve the issue because I'm having problem too.. |
Please add the following code before download excel
|
for who still get this problem, try edit config/excel.php : from |
@manhtqb Simple and clear, thanks! |
if anyone see this, I have solved the problem: I changed the value: 'use_bom'=>false to 'use_bom'=>true in the 'csv' part of excel.php file in config folder. I wish you success! |
This issue still remains during import of CSV files. I did set |
i still have the same issue, i changed the value : 'use_bom' to true but when i open de csv file in excel, the econding problem persist. |
You're replying to a very old ticket. Please open a new issue (and fill in the issue template details) if you're experiencing issues on Laravel Excel 3.1 version. Older versions of Laravel Excel are no longer supported. Thanks! |
Me salvaste el dia joven excelente! |
When I use "->export('xls')", the result is ok, but if I use "->export('csv')", the UTF8 charcters come with encode problem.
Exemple: Waister Guimarães,"waisters@gmail.com"
The text was updated successfully, but these errors were encountered: