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

Do you have any idea about File Encoding #67

Closed
caryyu opened this issue Aug 11, 2024 · 2 comments
Closed

Do you have any idea about File Encoding #67

caryyu opened this issue Aug 11, 2024 · 2 comments
Labels
external tools Related to used external tools question Further information is requested

Comments

@caryyu
Copy link

caryyu commented Aug 11, 2024

When I use the jcf-pascal-format-quadroid formatter, the handler will always change my file encoding to UTF8 with BOM, even if I don't use this VSCode extension, I just follow the instruction here: https://github.com/quadroid/jcf-pascal-format?tab=readme-ov-file#how-to-use-jcf-pascal-format-in-vs-code

Do you know any way that I can keep my file encoding after formatting, thanks.

@caryyu caryyu added the question Further information is requested label Aug 11, 2024
@alefragnani
Copy link
Owner

Hi @caryyu ,

Which extension are you refering to when you say even if I don't use this VSCode extension? This one (Pascal Formatter) or its fork?

The Quadroid formatter support was added by the Quadroid author itself, on #52, and it updated the extension to remove UTF BOM. So, I understand it should be removing the BOM when you format.

Otherwise, if you are asking on how to remove the BOM when you run the formatter via command line, I'm not this is possible, at least I don't see any command line argument to change/touch the encoding.

Hope this helps

@alefragnani alefragnani added need more info external tools Related to used external tools labels Aug 11, 2024
@caryyu
Copy link
Author

caryyu commented Aug 12, 2024

Yes, I guess It has to be done via the jcf source code or something, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external tools Related to used external tools question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants