검색결과 리스트
한글깨짐에 해당되는 글 5건
- 2013.07.17 [IntelliJ IDEA] 한글깨짐현상
- 2012.10.17 [Windows] 프로그램 글자가 깨질때
- 2012.06.14 [Eclipse] Console 한글깨짐
- 2011.08.26 [jFreeChart] jFreeChart (Stacked Chart) 한글깨짐 문제
- 2011.03.01 [Visual Studio 2008] Unicode 기반 프로그램에서 한글이 깨지는 현상
글
'IDE/Tool > IntelliJ IDEA' 카테고리의 다른 글
[IntelliJ IDEA] 단축키, 사용법(?) (0) | 2013.07.21 |
---|---|
[IntelliJ IDEA] IntelliJ 에서 Auto Publising 기능 사용하기 (0) | 2013.07.20 |
[IntelliJ IDEA] IntelliJ 시작하기 (0) | 2013.07.01 |
[IntelliJ IDEA] Tutorial (0) | 2013.06.20 |
[IntelliJ IDEA] Zencoding plugin (0) | 2013.05.09 |
트랙백
댓글
글
대부분 시스템 언어설정에서 문제가 생기는 경우이다.
아래 이미지를 보고 한글로 맞춰주면 된다.
시스템로케일을 변경한다.
'OS > Windows' 카테고리의 다른 글
[Windows] .exe 아이콘이 안보일때 (.exe icon not showing) (0) | 2013.04.16 |
---|---|
[Windows] 프로그램을 서비스로 등록하는 방법 (0) | 2012.12.07 |
[Windows] Message (0) | 2012.07.30 |
CreateDirectory 와 SHCreateDirectory 다른점 (0) | 2011.03.01 |
HMODULE과 HINSTANCE의 차이점 (0) | 2011.02.08 |
트랙백
댓글
글
새로운 프로젝트에서 밑바탕부터 시작하니 이것 저것 걸리는게 많습니다.
각설하고 Jeus + Eclipse 환경에서 개발합니다.
개발전에 모든 Encoding을 UTF-8로 교채했습니다.
테스트겸 System.out.println으로 콘솔창에 찍어봤는데 한글이 깨집니다. ㅠㅠ
수정방법은
Run -> Run Configurations ... -> [JEUS Server] -> Common에서 Encoding을 'EUC-KR'로 변경합니다.
* 추가 : 2012-07-28
Jeus의 WebApp설정을 UTF-8로 맞춰주시는 방법도 있습니다.
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] Automatically Close 해제 (0) | 2012.06.15 |
---|---|
[Eclipse] jQuery jquery-1.X.X.min.js 포함시 에러 필터링 하기 (0) | 2012.06.14 |
[Eclipse] 글꼴 및 Color 변경 (0) | 2012.06.13 |
[Eclipse] 기본브라우저 설정 (0) | 2012.06.13 |
[Eclipse] Heap 영역 조절 (0) | 2012.06.13 |
트랙백
댓글
글
import org.jfree.chart.ChartFactory
import org.jfree.chart.ChartFrame
import org.jfree.chart.ChartUtilities
import org.jfree.chart.JFreeChart
import org.jfree.chart.plot.PlotOrientation
import org.jfree.chart.plot.CategoryPlot
import org.jfree.chart.ChartRenderingInfo
import org.jfree.chart.entity.StandardEntityCollection
import org.jfree.data.xy.*
import org.jfree.data.category.DefaultCategoryDataset
// 데이타셋
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
int[] nCatSum = new int[]{0, 0, 0, 0};
for (int i=0; i < 12; i++) {
for (int j=0; j < nCatSum.length; j++) {
dataset.addValue(nCatSum[j], "카테고리"+(j+1), ""+(i+1)+"월");
nCatSum[j] += i+j;
}
}
// 차트
JFreeChart chart = ChartFactory.createStackedBarChart(
"Bar Chart"
, "X축"
, "Y축"
, dataset
, PlotOrientation.VERTICAL
, true
, true
, false);
chart.setBackgroundPaint(java.awt.Color.white);
chart.setTitle("제목");
////////////////////////////////////////////////////////////////
// 한글 깨짐 해결
// 제목
chart.getTitle().setFont(new Font("돋움", Font.BOLD, 15));
// 범례
chart.getLegend().setItemFont(new Font("돋움", Font.PLAIN, 10));
CategoryPlot plot = chart.getCategoryPlot();
Font font = plot.getDomainAxis().getLabelFont();
// X축 라벨
plot.getDomainAxis().setLabelFont(new Font("돋움", font.getStyle(), font.getSize()));
// X축 도메인
plot.getDomainAxis().setTickLabelFont(new Font("돋움", font.getStyle(), 10));
font = plot.getRangeAxis().getLabelFont();
// Y축 라벨
plot.getRangeAxis().setLabelFont(new Font("돋움", font.getStyle(), font.getSize()));
// Y축 범위
plot.getRangeAxis().setTickLabelFont(new Font("돋움", font.getStyle(), 10));
// 파일 저장
ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
String fileName= "C:/" + "stactedChart.jpg";
ChartUtilities.saveChartAsJPEG(new File(fileName),chart,800,450,info);
'Java > jFreeChart' 카테고리의 다른 글
[jFreeChart] jFreeChart (Bubble Chart ) 사용법 (0) | 2011.08.29 |
---|
트랙백
댓글
글
Visual Studio 2008에서 데이터베이스에 Input, Output 하는 프로그램을 만들었습니다.
프로그램에서 Oracle에 Insert하면은 정상적으로 한글이 보이는데
파일을 읽어서 Oracle에 Insert하면은 깨지는 현상이 나타났습니다.
결국 해결은
Visual Studio 2008의 로케일을 변경해서 해결했습니다.
// 로케일을 설정 _tsetlocale(LC_ALL, _T("korean")); // 또는 #pragma로도 가능하다. #pragma setlocale("korean")
또한 #pragma
'IDE/Tool > Visual Studio' 카테고리의 다른 글
[Visual Studio 2005] Visual Studio 2005 에서 ildasm.exe 위치 (0) | 2012.03.10 |
---|---|
[Visual Studio] 마법사 만들기 (0) | 2012.03.08 |
[링크] 매크로를 이용한 Visual Studio .h .cpp 전환 (0) | 2011.02.15 |
FAT32, NTFS 포맷 방식이 컴파일에 영향을 준다. (1) | 2008.10.12 |
Platform SDK 설치 (1) | 2008.09.18 |
RECENT COMMENT