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

Support for getting encoding from .cpg files #247

Open
1 task
karimbahgat opened this issue Jul 26, 2022 · 2 comments
Open
1 task

Support for getting encoding from .cpg files #247

karimbahgat opened this issue Jul 26, 2022 · 2 comments

Comments

@karimbahgat
Copy link
Collaborator

Describe the feature request

Non-standard but commonly accepted cpg file that specifies which text encoding to use. Would make for more robust handling of files and special cases. Main problem is figuring out which strings are used to represent encodings, appears to be non-standard.

May want to support both read and write support for this.

Contributions

  • I am interested in implementing the described feature request and submit as a PR.
@JamesParrott
Copy link
Collaborator

JamesParrott commented Oct 18, 2022

I'm not familiar with arc, but from googling, .cpg files do seem to be nothing more than one line text files. However their very nature does invite the following questions:

Are the .cpg files themselves encoded in utf-8, or what?
Or do all the encoding strings to be supported only use ascii characters, so it shouldn't matter if it's not utf-16?

@karimbahgat
Copy link
Collaborator Author

Not sure at the moment, I suspect using ascii or utf8 would be a safe assumption and work in most cases. I haven't looked very hard though. Let me know if you find out, or want to submit a PR :)

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