-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Special characters e.g. üö§ with Monolog+ Firephp + Chrome extension not working ??? #1521
Comments
Can you perhaps show what the exact headers sent look like (both for FirePHPHandler and native firephp-core)? That might hint at why one works and the other not. |
Ah never mind, I suspect the issue is because we send unicode unescaped in the JSON. And that goes through headers, which is probably not a great idea. Can you please try if |
THANK YOU!
Now it works
Ans yes the encoding of the http heders was the problem…
Header from Chrome devtools below now look similar and output is fine 😊
Outpout by Monolog / FirePHPHandler
x-wf-1-1-1-5:
86|[{"Type":"INFO","File":"","Line":"","Label":"terraristik"},"\u00f6\u00fc\u00e4\u00a7"]|
1. x-wf-1-1-1-6:
86|[{"Type":"INFO","File":"","Line":"","Label":"terraristik"},"\u00f6\u00fc\u00e4\u00a7"]|
Output by Firephpcore has the identical encoding (shows more details like line but that is a completely different story ..)
1. x-wf-1-1-1-14:
191|[{"Type":"INFO","Label":"Uml\u00e4\u00fct Test!","File":". [... ] ","Line":80},"Info message mit \u00d6O\u00dc\u00c4 \u00a7"]|
Von: Jordi Boggiano <notifications@github.com>
Gesendet: Donnerstag, 10. Dezember 2020 17:16
An: Seldaek/monolog <monolog@noreply.github.com>
Cc: Alexander Dobernig <office@terraristik.com>; Author <author@noreply.github.com>
Betreff: Re: [Seldaek/monolog] Special characters e.g. üö§ with Monolog+ Firephp + Chrome extension not working ??? (#1521)
Ah never mind, I suspect the issue is because we send unicode unescaped in the JSON. And that goes through headers, which is probably not a great idea.
Can you please try if composer require monolog/monolog:^2.1@dev fixes it for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1521 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AILJJX76UQQCCDMNASTCVP3SUDX4JANCNFSM4USDQWCQ>.
|
Ok great, I'll try and get a release out soonish. |
Monolog version 2
If i try to log user input including special characters like "Öüħ" to the Firephp Handler, the complete chrome screen of the FIREPHP extension stays blank.
If i remove those characters everythink works perfectly.
Update:
Using ONLY the current class
https://github.com/firephp/firephp-core
together with the firephp chrome extension but WITHOUT MONOLOG
everything works perfectly with all these unicode characters like ÄÜÖ§
they are prperly displayed in the firephp console
So most probably the FirePHPHandler has a bug.
thanks
Alex
The text was updated successfully, but these errors were encountered: