eclipse的使用-------Text File Encoding没有GBK选项的设置

2013-12-25 09:48:06

标签:java myeclipse使用

有一个项目是使用GBK编码的,在导入到Myeclipse10之后,由于我整个eclipse环境是UTF-8编码的,从而导致中文乱码。

解决办法:

右键项目->Properties->Text File Encoding中没有GBK这个选项。此时你可以手动输入编码方式,如输入GBK,然后点确定,编码格式就成为GBK了,解决了中文乱码问题。

时间: 2024-10-20 06:31:05

eclipse的使用-------Text File Encoding没有GBK选项的设置的相关文章

eclispe设置workspace text file encoding

在windows下开发,经常会遇到eclipse新导入的工程 java代码中的注释或者字符串中文显示乱码,每次都要一个个项目更改麻烦,特地找了下,可通过如下方法一次性设置.

What is a text file and what is a binary file :)

If you are not coming from a programming background it might not yet be clear what is really a file? What is a binary file and what makes something a text file? 其实总归一句话:[Files that consist exclusively of ASCII characters are known as text ?les. All o

SharePoint 2010: Export User Profile Properties to a Text File or Excel using PowerShell

导出到txt [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles") [void][System.Reflection.Assembly]::LoadWithParti

Jenkins maven 构建乱码,修改file.encoding系统变量编码为UTF-8

一切都是windows的控制台默认编码GBK问题 情景: 使用jenkins构建,console 输出的中文乱码.代码编码格式是utf-8,因为Jenkins会默认读取当前系统的编码格式,导致构建日志乱码和selenium自动化测试输入的中文乱码. 控制台输出乱码 摸索 不能忍,果断百度一下,按照设置全局配置那里设置LANG :zn_CH.utf-8 无效. 在jenkins下的jenkins.xml设置什么启动为utf-8也是无效. 但是查找资料期间发现,jenkins系统管理的系统信息  想

解决maven打包编译出现File encoding has not been set问题

maven打包编译时后台一直输出警告信息 [WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent! 找了半天,原来只要在pom.xml文件中增加一个配置项即可 <properties>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncodi

create feature from text file

'''---------------------------------------------------------------------------------- Tool Name: CreateFeaturesFromTextFile Source Name: CreateFeaturesFromTextFile.py Version: ArcGIS 9.1 Author: Environmental Systems Research Institute Inc. Required

shell脚本执行时报&quot;bad interpreter: Text file busy&quot;的解决方法

在执行一个shell脚本时,遇到了"-bash: ./killSession.sh: /bin/bash: bad interpreter: Text file busy"错误提示,如下所示: [[email protected] bin]$ ./killSession.sh      -bash: ./killSession.sh: /bin/bash: bad interpreter: Text file busy 此时只需要在#!/bin/bash,加一空格#! /bin/bas

how to solve &quot;[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!&quot;

[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! Saw this warning message when using failsafe maven plugin, found the fix after a little search. add following to pom.xml <properties> <pro

Writing Text File From A Tabular Block In Oracle Forms

The example given below for writing text file or CSV using Text_IO package from a tabular block in Oracle Forms. Suppose there is a tabular grid data block "Job_History" in your forms and you want to write a CSV on click of a button by reading w