Hello I am using version 2.1 of Larvel Excel with Laravel version 5.2 and running into an illegal character error.
https://laravel-excel.maatwebsite.nl/2.1/getting-started/
I am trying to export an entire table to an .xlsx file and I am running into an illegal character. I have done a ton of searching online and cant seem to find any reason why this character would be illegal in a spreadsheet. I have tried doing a CSV as well and that doesn't seem to work. Here is the error.
PHPExcel_Calculation_Exception in Cell.php line 293: FTP Accounts!F14 -> Formula Error: Illegal character '~'
If I go to the column content that is causing the error and get rid of the ~ it works. Is there anyway to get around this without changing the content of the cells with ~ to without one?
Thanks in advance
Related
The answer to the following problem would be to use mb_strtolower(). however what I would like to know is what is causing the following problem:
I have an application which converts a user given string to lowercase using strtolower() and attempts to insert it in MongoDB. When I insert a special character like: รถ it works just fine locally. But remotely on a different server it fails stating:
PHP Fatal error: Uncaught exception 'MongoException' with message 'non-utf8 string: \xe3\xb6'
I checked all the mb_* settings, I checked the locales. I can't figure out why it works locally but fails online.
edit: added strtolower
Whenever I open, edit and upload a file from Zend Studio, I get this error when I visit the page. This doesn't occur before uploading. I'm having to delete the file, copy the content and re-upload every time I want to change a file.
The console window in Chrome outputs:
Uncaught SyntaxError: Unexpected token ILLEGAL
With these strange red dots?
How can I stop this from occurring?
I'm using Zend Studio 10.6 on Macbook Retina with Mavericks 10.9.2.
Try opening the file with Notepad++ in encoding: UTF-8 without BOM. Then look at around your code, maybe there is a illegal character there.
If the solution above does not work, try converting it to encoding: UTF-8 then continue converting it to Cp1252 (using Zend Studio IDE).
Most of the time i am getting
"htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument"
in laravel even for syntax error. I didnt understand and I am unable to track the actual error.
How can i track the actual error in laravel 4
It seems to be a encoding issue. Be sure to specify the encoding UTF-8 :
Check here
I have written a code to get images from instagram and saving data to DB using the code below:
Calling this PHP file from the command line, I am getting this error:
Warning: Unknown: Could not convert string to Unicode: 'No mapping for the Unicode character exists in the target multi-byte code page'.
PHP Fatal Error
This code is executing on Windows 7 64 bit. Please help me with this.
I have changed my pc's setting to english, now it is working
I am writing a PHP application and developing it localy (easyPHP). However, when I transfer my files on my server (FTP), i get on of the following error :
Parse error: syntax error, unexpected $end in /homez.93/dockydoc/_apps/dockydocs/include/functions.php on line xx
Error unexpected error function on line 1
Etc..;
When I re-download my PHP files and open them with Notepad++ or the classic windows pad, their are no more spaces, line break or tabulation in my file ! This result in the server not to be able to read PHP.
My files are UTF8 without BOM encoded (in Notepad++). I can't find the solution to this proble despite thorought search on the Internet... I anyone could help .. :)
Thanks,
Romain
Make sure you are using ASCII mode data connection when uploading the files over FTP. If you are set to binary, I believe this causes this!