I need convert UTF-16 to ANSI [closed]

本小妞迷上赌 提交于 2021-02-05 12:30:53

问题


How i can convert UTF-16 to ANSI in a .cmd file?


回答1:


Your code has a UTF-16 LE byte-order-marker at the beginning of it, which an obfuscation technique developed on DosTips. Either remove it via a hex editor, or save this code as deobfuscate.bat and drag your script onto it:

@echo on &setlocal
if "%~1"=="" exit /b
if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b
<"%~1" ((for /l %%N in (1 1 8) do pause)>nul&findstr "^">"%~n1___%~x1")


来源:https://stackoverflow.com/questions/62200446/i-need-convert-utf-16-to-ansi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!