Reason: different coding methods
Solution:
Modify the CFG configuration file in Linux, create a new CFG text file, copy and paste it into the new CFG. File file name to view the encoding method of the file.
How to convert in Linux?
Convert CFG files in folders 1 and 2 [UTF-8 (with BOM) to UTF-8]:
#!/bin/bash
function cfg_change()
{
dir=./etc/xxx/"$1"/
find $dir -type f -name "cfg.txt" -print | xargs -i sed -i '1 s/^\xef\xbb\xbf//' {}
echo "-------Convert Succeed-------"
file ./etc/xxx/"$1"/cfg.txt
}
case "$1" in
-1)
cfg_change 1;
;;
-2)
cfg_change 2;
;;
*)
echo "Usage: $0 -1|-2"
esac
exit 0
Read More:
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files
- Grep: How to Find All the Files Containing a String in Linux
- Linux system service command error: Failed to allocate directory watch: Too many open files
- Linux yum Error: All mirror URLs are not using ftp
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode
- Linux Error: CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
- [Solved] Linux error: SSH_exchange_identification: read: Connection reset by peer
- Linux accesses the shared directory of windows, pysmb (parameter remote)_Name (defined)
- How to Create Threads in Linux
- [Solved] Go use zoom to connect DM database and start reporting error in Linux
- How to Solve Linux Error: -bash: unzip: command not found
- linux(aarch64): How to Fix kettle Startup Error Issue
- Linux Error: Failed to connect to ::1: No route to the host
- Linux gets the program PID according to the port
- Linux: How to Solve Rabbitmq Plug-in Install Error
- Linux: How to Fix undefined reference to `itoa’
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- linux Ubuntu Error: No command ‘setenv‘ found
- linux use sh execute source error [How to Solve]
- Linux: How to Solve sudo operate Error