Compatibility should be considered during development projects, including the frontend and backend, different operating system platforms, and ides. Because the tab key has different display lengths on different platforms, therefore, inconsistency may be displayed on different platforms. This is the problem of cross-platform and compatibility of codes! Of course, it also includes garbled characters caused by differences in character encoding formats on different platforms --->(Unified encoding formats for different platforms! // Or transcoding)
The most lightweight way to convert a tab to a space is by using the editor, such as editplus and notepad ++. For details, see the following:
Editplus:
Notepad ++:
The Vim Tab key defaults to 4 spaces.(Vim sets tab-> space, and eclipse utf8 encoding)
Http://my.oschina.net/renwofei423/blog/17338
Eclipse sets soft tab (replaced by four spaces) and default UTF-8 file encoding (UNIX)
Http://hi.baidu.com/loyaltyji/item/61473f8b4a5baec799255f58
Eclipse tab to space (supplementary content, involving eclipse. ini, Vm parameter settings)
Http://blog.csdn.net/fishyqd/article/details/755303
Anyedit tools (eclipse tab-to-space plug-in, applicable to version 3.x)
Http://andrei.gmxhome.de/eclipse/