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

can't convert mixed encode file #25

Open
ifq opened this issue Apr 24, 2017 · 1 comment
Open

can't convert mixed encode file #25

ifq opened this issue Apr 24, 2017 · 1 comment

Comments

@ifq
Copy link

ifq commented Apr 24, 2017

I have lots of C source file, which mixed with GB2312 and UTF-8 comments.
I want to convert all GB2312 to utf8, and enca

$ enconv -d io.c
io.c: Unrecognized encoding
  Failure reason: No clear winner.

If I manually delete utf8 encoded comment in io.c file, then the process goes well.

Is it possible to add an option, like -i utf-8 , which keep specific encoded part in file, and convert other part of the file.

I searched a lot today, seems like no tools support this kind of function.

@nijel
Copy link
Owner

nijel commented Nov 1, 2017

There is no such feature right now, sorry.

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