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

Feature Request: Console output encoding selector #70

Open
shoedler opened this issue Jul 4, 2018 · 1 comment
Open

Feature Request: Console output encoding selector #70

shoedler opened this issue Jul 4, 2018 · 1 comment

Comments

@shoedler
Copy link

shoedler commented Jul 4, 2018

Just a small request. It would be nice to be able to set the charset for the stdout stream in the process-palette.json

atom_process-palette-encoding
The stdout of our compiler is in Windows 1252. Process-palette Shows it presumably in UTF-8

Another solution: Process-palette could also just use my preffered encoding type according to my core settings (Which in my case would be Windows 1252)

If anyone could help out with that, that would be great!
Thanks in advance

@morassman
Copy link
Owner

The output panel is a simple div and AFAIK it's not possible to set the encoding on a particular div. HTML5 defines a meta tag where one can specify the encoding, but it then applies to the whole DOM.

However. Atom's TextEditor class allows one to set the encoding for each instance of an editor. I'm not sure how they manage that behind the scenes, but their API allows one to do that. To take advantage of that I'll have to change the output panel to use an instance of TextEditor instead of a plain div. It might be a small change or it might open a can of worms and since the output panel is rather central to the package, I'll have to tread carefully around it.

I'll have to see what I can do about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants