在批處理顯示Unicode特殊符號的方法
阿新 • • 發佈:2018-06-11
批處理顯示特殊符號 Unicode特殊符號 批處理獲取特殊符號 特殊符號編碼 UTF-8無BOM編碼 研究背景
有時我們需要在批處理中顯示諸如★、●、?、?、?等特殊符號,但一般的批處理腳本文件使用的都是ANSI編碼,這種編碼是不能保存Unicode字符的,但很多特殊符號偏偏使用的就是Unicode編碼,怎麽辦?為此,本人研究出了一個symbols腳本,通過調用該腳本,可以在批處理中輕松地顯示這些特殊符號。該腳本必須使用UTF-8無BOM編碼來保存,否則會失效。不會更改編碼的朋友可直接點擊下載,然後可以使用記事本打開瀏覽,但不可點擊保存,否則腳本功能會失效。
使用腳本
@echo off rem these specific symbols are unicode characters. rem the script must be edited by code "UTF-8 NO BOM",can't be edited by notepad,or will be disable. rem suggess use notepad++ to edit the script and ues the code of "UTF-8 NO BOM". rem the space line must be leaved or the script will be disable. chcp 65001 >nul set symbol_1=△ set symbol_2=▽ set symbol_3=? set symbol_4=? set symbol_5=▲ set symbol_6=▼ set symbol_7=? set symbol_8=? set symbol_9=○ set symbol_10=● set symbol_11=◇ set symbol_12=◆ set symbol_13=□ set symbol_14=■ set symbol_15=☆ set symbol_16=★ set symbol_17=? set symbol_18=? set symbol_19=? set symbol_20=? set symbol_21=? set symbol_22=? set symbol_23=? set symbol_24=? set symbol_25=? set symbol_26=? set symbol_27=? set symbol_28=? set symbol_29=♀ set symbol_30=♂ set symbol_31=? set symbol_32=? set symbol_33=? set symbol_34=? set symbol_35=? set symbol_36=? set symbol_37=√ set symbol_38=× set symbol_39=? set symbol_40=? set symbol_41=? set symbol_42=? set symbol_43=? set symbol_44=? set symbol_45=? set symbol_46=? set symbol_47=? set symbol_48=? set symbol_49=? set symbol_50=? set symbol_51=‥ set symbol_52=… set symbol_53=∷ set symbol_54=※ set symbol_55=? set symbol_56=? set symbol_57=▓ set symbol_58=▁ set symbol_59=▂ set symbol_60=▃ set symbol_61=▄ set symbol_62=▅ set symbol_63=▆ set symbol_64=▇ set symbol_65=█ set symbol_66=▏ set symbol_67=▎ set symbol_68=▍ set symbol_69=▌ set symbol_70=▋ set symbol_71=▊ set symbol_72=▉ set symbol_73=? set symbol_74=? set symbol_75=? set symbol_76=? set symbol_77=§ set symbol_78=? set symbol_79=? set symbol_80=? set symbol_81=‖ set symbol_82=? set symbol_83=? set symbol_84=? set symbol_85=? set symbol_86=? set symbol_87=? set symbol_88=? set symbol_89=◎ set symbol_90=¤ set symbol_91=? set symbol_92=? set symbol_93=? set symbol_94=? set symbol_95=卍 set symbol_96=卐 set symbol_97=? set symbol_98=〓 set symbol_99=℡ set symbol_100=? set symbol_101=? set symbol_102=? set symbol_103=? set symbol_104=? set symbol_105=? set symbol_106=@ set symbol_107=㈱ set symbol_108=№ set symbol_109=? set symbol_110=? set symbol_111=? set symbol_112=? set symbol_113=? set symbol_114=? set symbol_115=? set symbol_116=? set symbol_117=? set symbol_118=? set symbol_119=? set symbol_120=? set symbol_121=↖ set symbol_122=↑ set symbol_123=↗ set symbol_124=→ set symbol_125=↘ set symbol_126=↓ set symbol_127=↙ set symbol_128=← set symbol_129=㊣ set symbol_130=? set symbol_131=? set symbol_132=? set symbol_133=? set symbol_134=? set symbol_135=? set symbol_136=? set symbol_137=? set symbol_138=? set symbol_139=? set symbol_140=? set symbol_141=◤ set symbol_142=◥ set symbol_143=◢ set symbol_144=◣ set symbol_145=? set symbol_146=? set symbol_147=? set symbol_148=? set symbol_149=? set symbol_150=? set symbol_151=? set symbol_152=? set symbol_153=? set symbol_154=? set symbol_155=? set symbol_156=? set symbol_157=? set symbol_158=? set symbol_159=? set symbol_160=? set symbol_161=? set symbol_162=? set symbol_163=? set symbol_164=? set symbol_165=¬ set symbol_166=▔ set symbol_167=? set symbol_168=? set symbol_169=* set symbol_170=* set symbol_171=? set symbol_172=? set symbol_173=? set symbol_174=? set symbol_175=? set symbol_176=? set symbol_177=? set symbol_178=? set symbol_179=? set symbol_180=? set symbol_181=? set symbol_182=? set symbol_183=? set symbol_184=? set symbol_185=? set symbol_186=? set symbol_187=? set symbol_188=? set symbol_189=? set symbol_190=? set symbol_191=? set symbol_192=? set symbol_193=? set symbol_194=? set symbol_195=? set symbol_196=? set symbol_197=? set symbol_198=? set symbol_199=? set symbol_200=? set symbol_201=? set symbol_202=? set symbol_203=? set symbol_204=? set symbol_205=? set symbol_206=? set symbol_207=? set symbol_208=? set symbol_209=? set symbol_210=? set symbol_211=? set symbol_212=? set symbol_213=? set symbol_214=? set symbol_215=? set symbol_216=? set symbol_217=? set symbol_218=? set symbol_219=? set symbol_220=? set symbol_221=? set symbol_222=? set symbol_223=? set symbol_224=? set symbol_225=? set symbol_226=? set symbol_227=? set symbol_228=? set symbol_229=? set symbol_230=? set symbol_231=? set symbol_232=? set symbol_233=? set symbol_234=? set symbol_235=? set symbol_236=? set symbol_237=? set symbol_238=? set symbol_239=? set symbol_240=? chcp 936 >nul
下載地址:點擊這裏下載symbols腳本
在批處理顯示Unicode特殊符號的方法