在一些场景下,用户需要通过BAT 批量更改用户或者电话中文信息,但是在更改文件上传之后显示的中文为乱码
如图:
显示乱码的语音是因为文件的编码格式不是UTF-8
参考的文档如下
Cisco recommends uploading Text-Based CSV files saved in the UTF-8 format only, as characters other than ASCII characters can be stored in this format. Using a text editor, such as Notepad++, you can select encoding as UTF-8 without Byte Order Mark (BOM) from the Encoding drop-down. Text-Based CSV files saved in formats other than UTF-8 may render garbled when downloaded from Cisco Unified Communications Manager.
https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/bat/12_0_1/cucm_b_bulk-administration-guide-1201/cucm_b_bulk-administration-guide-1201_appendix_01010001.html
- 导出您想更改的txt 文件
- 将名字改成.csv,并用EXCEL打开
- 打开之后更改对应的中文选项,如下更改的是display name
保存为CSV UTF-8 格式
用note pad ++ 打开相应的CSV,验证文件的格式,使用UTF-8查看,在UTF-8下会显示中文。
上传验证如图