下面所述均以utf-8的编码格式为标准
1.java客户端
(1)将编辑器的所有的编码格式设置为utf-8格式,若是eclipse或myeclipse则可参照以下方法:
<span style="background-color: rgb(255, 252, 246);"><strong>①</strong></span><span style=" font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 252, 246);"><strong>Window->Preferences->General->Content Types……</strong></span><span style="font-weight: bold; background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;">修改一类文件的编码方式</span>
<span style="font-weight: bold; background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;"></span><pre id="best-answer-content" class="reply-text mb10" name="code" style="margin-top: 0px; margin-bottom: 10px; background-color: rgb(255, 255, 255); white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 26px; padding: 0px; zoom: 1;"><span style="background-color: rgb(255, 252, 246);"><strong>②</strong></span><span style="background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;">Window->Preferences->General->Editors->Text Editors->Spelling</span>
<span style="background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;"></span><pre id="best-answer-content" class="reply-text mb10" name="code" style="margin-top: 0px; margin-bottom: 10px; background-color: rgb(255, 255, 255); white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 26px; padding: 0px; zoom: 1;"><span style="background-color: rgb(255, 252, 246);"><strong>③</strong></span><span style="background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;">Window->Preferences->General->Workspace……</span><span style="background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;">修改工作空间的编码方式</span>
<span style="background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;"></span><pre id="best-answer-content" class="reply-text mb10" name="code" style="margin-top: 0px; margin-bottom: 10px; background-color: rgb(255, 255, 255); white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 26px; padding: 0px; zoom: 1;"><span style="background-color: rgb(255, 252, 246);"><strong>④</strong></span><span style="background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;">右键单击项目名称->Properties->Resource->Text file encoding……</span><span style="background-color: rgb(255, 252, 246); font-family: Arial, Helvetica, sans-serif;">修改单个工程的编码方式;若右键单击一个文件,则修改单个文件的编码方式</span>