-
Notifications
You must be signed in to change notification settings - Fork 30k
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
how to auto detect , auto encoding ? #4846
Comments
@xianghongai so in what encoding is this file? |
hi,@bpasero , |
@xianghongai can you attach it here? |
兄弟,别指望了,我很久之前就提过,他们的回答是目前已经支持带DOM头的文件编码检测,不带DOM的不检测,我弄了个插件检测编码的,现在编码是检测成功了,但是切换编码卡住了,他喵的切换的API不开放,未来很长一段时间这个功能都不会有,不介意的话可以等等我的插件上线,由于接口限制,插件只能到 |
@iHuahua maybe as full file? |
@bpasero batch file :) |
@iHuahua 谢谢了,目前我是几个编辑器混着用的,可以解决一些问题,千万不要用sublime text编辑这种GBK编码格式的文件!我写批处理,几百行代码后,ST突然一个auto encoding 把我代码中文部分全乱码了!而且是撤销不了的乱码。 |
I do not see myself able to handle this issue, @egamma please advise. |
@iHuahua @xianghongai the development team does not speak Chinese. Can you please find someone that can translate your comment to English? |
thx, @bpasero , @egamma , |
fyi @bpasero |
hi, when open a Lua file which's encoding is GBK and without BOM header, the VS Code can not aoto dectect the encoding. I need to switch utf8 to GBK by hand every time i open a new such file, It's annoying. I've install the |
I have many projects, some of them are GBK encoded, other are UTF-8 encoded, so what can I do for setting different encoding for each project. appreciate for any help @egamma |
any updates for this issues? |
please fix it |
any update of this issue? |
Same here, always open a file at "UTF-8", but i need some files at "Western Windows 1252" |
I am also having this kind of problem. Orignal file is ANSI with german umlauts and code converts it to UTF-8, then I am loosing the umauts. |
Very very old problem. |
Yes, very old Atenciosamente, 2016-09-06 10:14 GMT-03:00 White99 [email protected]:
|
It's disgusting when I find all the notes have been garbled.It will take me hours to solve the issue.Why not release an extension to automatically switch the encoding format? |
我的解决方式:
GB大写。 |
any updates for this issues? |
It's a pity that vscode does not support auto encoding detect, but the Visual Studio does support that, and even the notepad2 could do that. |
any updates? |
any updates or new apis? |
It's indeed annoying, usually web related files are utf-8 encoding, windows platform files are local encoding, so "files.encoding" setting is not helping at all, you still need to manually set half files each time. |
any updates? |
1 similar comment
any updates? |
Any supports or updates? |
Any updates? |
C:\Users\USERNAME\AppData\Roaming\Code\User\settings.json文件内容。即可 |
@hackjackyer 我们需要是 What we need is the ability that |
为什么不写个插件来对所有(或者大部分)的编码来进行判断呢?Why not write a plugin for judge the encoding? |
Any updates? |
Update! Pull request: #21416 |
为什么我明明是UTF8,但是自动转换为GB2312,导致显示乱码 |
setting
|
@a4027971 Is this option real ? Exists ? |
VSCode verision : 1.14.1 This option really exists |
hot key:ctrl+Comma, then change " "files.autoGuessEncoding": false " to " "files.autoGuessEncoding": true ". |
hi ,
not working
The text was updated successfully, but these errors were encountered: