eclipse 设置默认编码为Utf-8

    xiaoxiao2021-04-15  31

    Window->Preferences->General->Content Type->Text->JSP 最下面设置为UTF-8

     Window->Preferences->General->Workspace  面板Text file encoding 选择UTF-8

     Window->Preferences->Web->JSPFiles 面板选择 ISO 10646/Unicode(UTF-8)

     

    tomcat中的server.xml的配置:

    <ConnectorURIEncoding="UTF-8" connectionTimeout="20000"port="9981" protocol="HTTP/1.1"redirectPort="8443" maxHttpHeaderSize="655350"  />

    转载请注明原文地址: https://ju.6miu.com/read-671785.html

    最新回复(0)