Skip to content
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

[Bug]: passing & got the error #4092

Closed
1 task done
adityadees opened this issue Feb 23, 2024 · 3 comments
Closed
1 task done

[Bug]: passing & got the error #4092

adityadees opened this issue Feb 23, 2024 · 3 comments

Comments

@adityadees
Copy link

adityadees commented Feb 23, 2024

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1

What version of Laravel are you using?

9.52

What version of PHP are you using?

8.2

Describe your issue

& giving an error

image

How can the issue be reproduced?

Just following this
https://docs.laravel-excel.com/3.1/exports/from-view.html

image

and view write like this

image

What should be the expected behaviour?

currently, only when I have & then I got the error
should be no error I think?
when I try to passing & instead of &, I didn' get error. so It should be on code issue actually can't take handle for &

@adityadees adityadees added the bug label Feb 23, 2024
@patrickbrouwers
Copy link
Member

Afraid that is something that you have to report at PhpSpreadsheet, as it's their reader that errors on this.

Not sure if it could have anything to do with the missing tag.

Alternatively you could check if your file is UTF-8 encoded.

@adityadees
Copy link
Author

Afraid that is something that you have to report at PhpSpreadsheet, as it's their reader that errors on this.

Not sure if it could have anything to do with the missing tag.

Alternatively you could check if your file is UTF-8 encoded.

as per my test yesterday I just simply type & on my keyboard
and also other's simple special char is working fine I think like #@%
so not sure if every type on my keyboard have diff encoded type.

but for my current solution for dynamic content is I just simply make & = &
and all working fine now.
but are should I always do like that ?

@stale stale bot added the stale label Apr 28, 2024
Copy link

stale bot commented May 5, 2024

This bug report has been automatically closed because it has not had recent activity. If this is still an active bug, please comment to reopen. Thank you for your contributions.

@stale stale bot closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants