< Home

display language charset conversion preview

Function

The display language charset conversion preview command previews the configuration conversion result after the encoding format is switched to UTF-8.

Format

display language charset conversion preview

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The default encoding format is GBK.

Before running the language character-set utf-8 command to switch to UTF-8 encoding, run the set old-encoding-charset mode { gbk | utf-8 } command to specify the original encoding for existing configuration, so that the FW can transcode the configuration. If the original encoding is unknown, specify any encoding format and run the display language charset conversion preview command to preview the configuration conversion result. If the result is normal without garbled characters, the specified original encoding format is correct.

For ASCII characters such as English letters and digits, the configuration does not change after the switching between GBK and UTF-8, so the command does not display the conversion effect. The conversion effect can be displayed only when the FW has GBK characters, such as Chinese characters, for which the encoding structure needs to be changed.

Example

# Preview the configuration conversion result after the encoding format is switched to UTF-8.

<sysname> display language charset conversion preview
Info:The original encoding mode of the device is GBK..                          
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >