[질문] std::wcout 에서 출력이 안되는 유니 코드가 있습니다.

ikpil의 이미지

윈도우에서 다음과 같이 코드를 작성하고 출력을 시켜 봅니다.

#include <iostream>
#include <string>
 
int main( void )
{
	std::locale::global( std::locale( "kor" ) );	
 
	wchar_t stringdata[4] = { 0, };
 
	stringdata[0] = 0xac00; // 유니코드 "가" 와 같습니다.
	stringdata[1] = 0x3050; // 유니코드 "ぐ" 와 같습니다.
        stringdata[2] = 0x3110; // 유니코드 "ㄐ"와 같습니다. <-- 이녀석이 출력이 안됩니다.
 
	std::wcout << stringdata << "\n";
 
	return 0;
}

BMP 표는 BMP표에서 확인 가능합니다.

마지막 ㄐ는 출력이 되지 않습니다. ... 왜 출력이 안될까요? ....!!!?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.