1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"Content-Type" content=
"text/xhtml;charset=UTF-8"/>
5 <meta http-equiv=
"X-UA-Compatible" content=
"IE=9"/>
6 <meta name=
"generator" content=
"Doxygen 1.8.6"/>
7 <title>Boost.Locale: Running Examples under Microsoft Windows
</title>
8 <link href=
"tabs.css" rel=
"stylesheet" type=
"text/css"/>
9 <script type=
"text/javascript" src=
"jquery.js"></script>
10 <script type=
"text/javascript" src=
"dynsections.js"></script>
11 <link href=
"navtree.css" rel=
"stylesheet" type=
"text/css"/>
12 <script type=
"text/javascript" src=
"resize.js"></script>
13 <script type=
"text/javascript" src=
"navtree.js"></script>
14 <script type=
"text/javascript">
15 $(document).ready(initResizable);
16 $(window).load(resizeHeight);
18 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css" />
21 <div id=
"top"><!-- do not remove this div, it is closed by doxygen! -->
23 <table cellspacing=
"0" cellpadding=
"0">
25 <tr style=
"height: 56px;">
26 <td id=
"projectlogo"><img alt=
"Logo" src=
"boost-small.png"/></td>
27 <td style=
"padding-left: 0.5em;">
28 <div id=
"projectname">Boost.Locale
35 <!-- end header part -->
36 <!-- Generated by Doxygen 1.8.6 -->
37 <div id=
"navrow1" class=
"tabs">
39 <li><a href=
"index.html"><span>Main
 Page
</span></a></li>
40 <li class=
"current"><a href=
"pages.html"><span>Related
 Pages
</span></a></li>
41 <li><a href=
"modules.html"><span>Modules
</span></a></li>
42 <li><a href=
"namespaces.html"><span>Namespaces
</span></a></li>
43 <li><a href=
"annotated.html"><span>Classes
</span></a></li>
44 <li><a href=
"files.html"><span>Files
</span></a></li>
45 <li><a href=
"examples.html"><span>Examples
</span></a></li>
49 <div id=
"side-nav" class=
"ui-resizable side-nav-resizable">
51 <div id=
"nav-tree-contents">
52 <div id=
"nav-sync" class=
"sync"></div>
55 <div id=
"splitbar" style=
"-moz-user-select:none;"
56 class=
"ui-resizable-handle">
59 <script type=
"text/javascript">
60 $(document).ready(function(){initNavTree('running_examples_under_windows.html','');});
62 <div id=
"doc-content">
64 <div class=
"headertitle">
65 <div class=
"title">Running Examples under Microsoft Windows
</div> </div>
67 <div class=
"contents">
68 <div class=
"textblock"><p>All of the examples that come with Boost.Locale are designed for UTF-
8 and it is the default encoding used by Boost.Locale.
</p>
69 <p>However, the default narrow encoding under Microsoft Windows is not UTF-
8 and the output of the applications would not be displayed correctly in the console.
</p>
70 <p>So in order to use UTF-
8 encoding under the Windows console and see the output correctly, do the following:
</p>
72 <li>Open a
<code>cmd
</code> window
</li>
73 <li>Change the default font to a TrueType font: go to properties-
>font (right click on title-bar-
>properties-
>font) and change the font to a TrueType font like Lucida Console
</li>
74 <li>Change the default codepage to
65001 (UTF-
8) by running
<code>chcp
65001</code></li>
76 <p>Now all of the examples should display UTF-
8 characters correctly (if the font supports them).
</p>
77 <p><b>Note for Visual Studio users:
</b> Microsoft Visual Studio assumes that all source files are encoded using an
"ANSI" codepage like
1252. However all examples use UTF-
8 encoding by default, so wide character examples would not work under MSVC as-is. In order to force it to treat source files as UTF-
8 you need to convert the files to UTF-
8 with BOM, which can be done easily by re-saving them from Notepad, which adds a BOM to UTF-
8 files by default.
</p>
78 </div></div><!-- contents -->
79 </div><!-- doc-content -->
82 © Copyright
2009-
2012 Artyom Beilis, Distributed under the
<a href=
"http://www.boost.org/LICENSE_1_0.txt">Boost Software License
</a>, Version
1.0.