Seldaek / php-console

PHP Debug Console
Other
529 stars 91 forks source link

allow different charset #17

Open staabm opened 11 years ago

staabm commented 11 years ago

I use this great tool to debug code or do some simple tests. sometimes when digging into code from legacy systems the charset/encoding also matters.

ATM php-console is always rendered in utf-8.

Would you accept a PR which adds a dropdown to toggle between charsets?

Seldaek commented 11 years ago

Why not but I wonder if it's not enough to just force the charset in your browser?

staabm commented 11 years ago

the index.php explicitly converts chars into utf8 and also defines a meta charset, therefore I think enforcing using the browser will not work.

staabm commented 11 years ago

btw: how would you force the charset using the browser?

Seldaek commented 11 years ago

In chrome you can do Menu>Tools>Encoding>..., similar stuff in every browser. That reloads the page using a given encoding so that everything should be rendered by the browser with that encoding, and the chars you input in the form will be in that encoding too. I think it should work fine but might depend on what you do exactly.

staabm commented 11 years ago

ok will try..