<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>UTF-8 Russian text output</title>
		<link>http://www.allegro.cc/forums/view/611708</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 28 Dec 2012 04:33:50 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is this the correct approach in order to output text in Russian?<br />How do I convert the char string into ALLEGRO_USTR*<br />Any help appreciated?</p><p><span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_ustr"><span class="a">al_draw_ustr</span></a><span class="k2">(</span>myFont, color, xPos, yPos, NULL, <span class="s">"веков"</span><span class="k2">)</span><span class="k2">;</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sancha)</author>
		<pubDate>Thu, 27 Dec 2012 15:26:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Although I haven&#39;t used it yet, I believe you either use <span class="source-code"><a href="http://www.allegro.cc/manual/al_ustr_new"><span class="a">al_ustr_new</span></a></span> or <span class="source-code"><a href="http://www.allegro.cc/manual/al_ref_cstr"><span class="a">al_ref_cstr</span></a></span>. Maybe Allegro handles UTF-8 internally, even if you don&#39;t use the USTR functions.<br />In any case also make sure your source file&#39;s encoding is UTF-8
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (weapon_S)</author>
		<pubDate>Thu, 27 Dec 2012 15:41:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Perfect! Thanks.</p><p><span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_ustr"><span class="a">al_draw_ustr</span></a><span class="k2">(</span>myFont, color, xPos, yPos, NULL, <a href="http://www.allegro.cc/manual/al_ustr_new"><span class="a">al_ustr_new</span></a><span class="k2">(</span><span class="s">"веков"</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span></span></p><p>Saved source file (MSVC2010) using encoding: Unicode (UTF-8 without signature) - Codepage 65001
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sancha)</author>
		<pubDate>Thu, 27 Dec 2012 18:30:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Should work with simply <span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_text"><span class="a">al_draw_text</span></a></span> too, Allegro 5 always treats strings as being UTF-8.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (torhu)</author>
		<pubDate>Thu, 27 Dec 2012 20:30:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>And al_ustr_new allocates memory.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Fri, 28 Dec 2012 04:33:50 +0000</pubDate>
	</item>
</rss>
