<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Should UI strings in source code have non-ASCII characters?</title>
	<atom:link href="http://simos.info/blog/archives/17/feed" rel="self" type="application/rss+xml" />
	<link>http://simos.info/blog/archives/17?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=should-ui-strings-in-source-code-have-non-ascii-characters</link>
	<description>Το ιστολόγιό μου</description>
	<lastBuildDate>Fri, 23 Dec 2011 10:18:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Alexander Jones</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394596</link>
		<dc:creator>Alexander Jones</dc:creator>
		<pubDate>Mon, 19 May 2008 23:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394596</guid>
		<description>@simos:

UTF-8 is designed so that subsequences are unambiguous. You won&#039;t get a byte less than 0x80 in any part of a multi-byte sequence. bytes 0x00-0x7F map directly to 7-bit ASCII.

Some people are worried about string functions breaking. I really don&#039;t see how this is the case, seeing as we&#039;re doing g_some_function (_(&quot;Some ASCII string&quot;)) which is replaced with a UTF-8 string at runtime anyway.

Does anyone have any actual proof of UTF-8 in our translatable strings breaking C?</description>
		<content:encoded><![CDATA[<p>@simos:</p>
<p>UTF-8 is designed so that subsequences are unambiguous. You won&#8217;t get a byte less than 0&#215;80 in any part of a multi-byte sequence. bytes 0&#215;00-0x7F map directly to 7-bit ASCII.</p>
<p>Some people are worried about string functions breaking. I really don&#8217;t see how this is the case, seeing as we&#8217;re doing g_some_function (_(&#8220;Some ASCII string&#8221;)) which is replaced with a UTF-8 string at runtime anyway.</p>
<p>Does anyone have any actual proof of UTF-8 in our translatable strings breaking C?</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394596" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394596', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394596-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394596" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394596', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394596-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Yevgen Muntyan</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394595</link>
		<dc:creator>Yevgen Muntyan</dc:creator>
		<pubDate>Sat, 17 May 2008 00:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394595</guid>
		<description>UTF-8 strings like &quot;\xCE\x80&quot; *are* portable. They are not &quot;portable to different encodings&quot;, but nobody needs that (whatever that means). We need UTF-8 in C strings, and that&#039;s the way to have them. If you want nice in po files, make xgettext convert C escape sequences to nice UTF-8 symbols.

As to universal character names, it is implementation-defined what actually will be contained in the character array. I.e. if you have char *s = &quot;\u...&quot; then you have no idea how to display text pointed to by that variable in a gtk label. Also, once you have that line of code, it won&#039;t by magic change &quot;to different encodings&quot;, it will be whatever byte sequences the compiler will put in there and that&#039;s it. It&#039;s pretty much the same as &quot;abc&quot; - it won&#039;t by magic be valid UTF-16, no matter how you compile the file.

And by the way, MS does not implement C99 (surprised?).</description>
		<content:encoded><![CDATA[<p>UTF-8 strings like &#8220;\xCE\x80&#8243; *are* portable. They are not &#8220;portable to different encodings&#8221;, but nobody needs that (whatever that means). We need UTF-8 in C strings, and that&#8217;s the way to have them. If you want nice in po files, make xgettext convert C escape sequences to nice UTF-8 symbols.</p>
<p>As to universal character names, it is implementation-defined what actually will be contained in the character array. I.e. if you have char *s = &#8220;\u&#8230;&#8221; then you have no idea how to display text pointed to by that variable in a gtk label. Also, once you have that line of code, it won&#8217;t by magic change &#8220;to different encodings&#8221;, it will be whatever byte sequences the compiler will put in there and that&#8217;s it. It&#8217;s pretty much the same as &#8220;abc&#8221; &#8211; it won&#8217;t by magic be valid UTF-16, no matter how you compile the file.</p>
<p>And by the way, MS does not implement C99 (surprised?).</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394595" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394595', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394595-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394595" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394595', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394595-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: simos</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394594</link>
		<dc:creator>simos</dc:creator>
		<pubDate>Sat, 17 May 2008 00:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394594</guid>
		<description>@nona: For the narrow scope of GNOME, it appears that all POT/PO files follow the UTF-8 encoding. Indeed, if some translation teams were to use another encoding such as SHIFT-JIS, it would make a bit of a mess.

SHIFT-JIS is almost backward-compatible with ASCII (two characters differ).

@behdad: C99 defines a super-portable way to encode non-ASCII strings (using UCNs, as described in the added section in the post above). This is what gcc says about UCNs:

$ cat t.c
int main(void)
{
	char* str = &quot;\u0399&quot;;

	return 0;
}
$ gcc t.c -o t
t.c:3:14: warning: universal character names are only valid in C++ and C99
$ _

This means that UCNs work in gcc, but they produce a warning by default.

Using hand-encoded UTF-8 strings (such as &quot;\xCE\x80&quot;) makes the code less portable to different encodinds.</description>
		<content:encoded><![CDATA[<p>@nona: For the narrow scope of GNOME, it appears that all POT/PO files follow the UTF-8 encoding. Indeed, if some translation teams were to use another encoding such as SHIFT-JIS, it would make a bit of a mess.</p>
<p>SHIFT-JIS is almost backward-compatible with ASCII (two characters differ).</p>
<p>@behdad: C99 defines a super-portable way to encode non-ASCII strings (using UCNs, as described in the added section in the post above). This is what gcc says about UCNs:</p>
<p>$ cat t.c<br />
int main(void)<br />
{<br />
	char* str = &#8220;\u0399&#8243;;</p>
<p>	return 0;<br />
}<br />
$ gcc t.c -o t<br />
t.c:3:14: warning: universal character names are only valid in C++ and C99<br />
$ _</p>
<p>This means that UCNs work in gcc, but they produce a warning by default.</p>
<p>Using hand-encoded UTF-8 strings (such as &#8220;\xCE\x80&#8243;) makes the code less portable to different encodinds.</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394594" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394594', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394594-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394594" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394594', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394594-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: nona</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394593</link>
		<dc:creator>nona</dc:creator>
		<pubDate>Fri, 16 May 2008 22:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394593</guid>
		<description>What about non-unicode multibyte character sets that might still be popular in some countries? What happens when there&#039;s UTF-8 and, let&#039;s say, SHIFT-JIS in the same PO file?</description>
		<content:encoded><![CDATA[<p>What about non-unicode multibyte character sets that might still be popular in some countries? What happens when there&#8217;s UTF-8 and, let&#8217;s say, SHIFT-JIS in the same PO file?</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394593" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394593', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394593-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394593" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394593', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394593-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: behdad</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394592</link>
		<dc:creator>behdad</dc:creator>
		<pubDate>Fri, 16 May 2008 03:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394592</guid>
		<description>I think the reason some think C source code should be 7-bit is that your *compiler* can screw up if run under a non-UTF-8 locale.  And that may actually be required by the C standard.  Not motivated enough to test it.</description>
		<content:encoded><![CDATA[<p>I think the reason some think C source code should be 7-bit is that your *compiler* can screw up if run under a non-UTF-8 locale.  And that may actually be required by the C standard.  Not motivated enough to test it.</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394592" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394592', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394592-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394592" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394592', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394592-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: simos</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394591</link>
		<dc:creator>simos</dc:creator>
		<pubDate>Thu, 15 May 2008 11:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394591</guid>
		<description>@Alexander: Some compilers complain when the source code has non-ASCII characters.

That is, bytes with the 8th bit set. Both iso-8859-x and utf-8 can have bytes that the value is &gt;127.

Or, bytes with value &lt;32 (control characters). That could be the case with UTF-8 when a character has codepoint value &gt;127.</description>
		<content:encoded><![CDATA[<p>@Alexander: Some compilers complain when the source code has non-ASCII characters.</p>
<p>That is, bytes with the 8th bit set. Both iso-8859-x and utf-8 can have bytes that the value is >127.</p>
<p>Or, bytes with value &lt;32 (control characters). That could be the case with UTF-8 when a character has codepoint value >127.</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394591" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394591', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394591-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394591" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394591', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394591-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Jones</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394590</link>
		<dc:creator>Alexander Jones</dc:creator>
		<pubDate>Thu, 15 May 2008 10:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394590</guid>
		<description>UTF-8 translates to ISO-8859 fine, insofar that it remains valid, even if it is garbage. I don&#039;t see why a compiler would screw up on parsing UTF-8 characters, as they just appear like a series of ISO-8859-x characters.

Maybe I&#039;m missing something?</description>
		<content:encoded><![CDATA[<p>UTF-8 translates to ISO-8859 fine, insofar that it remains valid, even if it is garbage. I don&#8217;t see why a compiler would screw up on parsing UTF-8 characters, as they just appear like a series of ISO-8859-x characters.</p>
<p>Maybe I&#8217;m missing something?</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394590" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394590', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394590-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394590" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394590', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394590-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Yevgen Muntyan</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394589</link>
		<dc:creator>Yevgen Muntyan</dc:creator>
		<pubDate>Wed, 14 May 2008 19:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394589</guid>
		<description>First fix all text editors, so they don&#039;t screw up your unicode (on the way to there remove iso8559-15 markers from all source files). Next, fix the C and C++ standards so all compilers understand UTF-8 source by default. Then use UTF-8 in C code ;)
Note that gcc is not the only C compiler for desktops, MS makes some too. UTF-8 in source code is GNU-C-ism which makes code less portable.</description>
		<content:encoded><![CDATA[<p>First fix all text editors, so they don&#8217;t screw up your unicode (on the way to there remove iso8559-15 markers from all source files). Next, fix the C and C++ standards so all compilers understand UTF-8 source by default. Then use UTF-8 in C code <img src='http://simos.info/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Note that gcc is not the only C compiler for desktops, MS makes some too. UTF-8 in source code is GNU-C-ism which makes code less portable.</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394589" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394589', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394589-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394589" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394589', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394589-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Benitez</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394588</link>
		<dc:creator>Sebastian Benitez</dc:creator>
		<pubDate>Wed, 14 May 2008 15:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394588</guid>
		<description>Like Phil says, languages like spanish, german and french use different quotes than english. For spanish it would be «these quotes».</description>
		<content:encoded><![CDATA[<p>Like Phil says, languages like spanish, german and french use different quotes than english. For spanish it would be «these quotes».</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394588" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394588', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394588-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394588" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394588', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394588-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394587</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 14 May 2008 12:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394587</guid>
		<description>It isn&#039;t always a valid assumption that apps are written with american english strings, so why not just go the whole hog and use semi-symbolic strings by default?

printf(_(&quot;file not found: %s\n&quot;));

might not be very friendly, but it&#039;s direct and equally easy to translate, regardless of what quotes your region uses.  There exist english translations of a lot of english software already (en_UK etc) so adding en_US isn&#039;t creating a major new translation job.

Obviously I wouldn&#039;t bother changing old strings, as long as compilers aren&#039;t erroring anyway, but a gradual shift doesn&#039;t seem to be a lot of work.</description>
		<content:encoded><![CDATA[<p>It isn&#8217;t always a valid assumption that apps are written with american english strings, so why not just go the whole hog and use semi-symbolic strings by default?</p>
<p>printf(_(&#8220;file not found: %s\n&#8221;));</p>
<p>might not be very friendly, but it&#8217;s direct and equally easy to translate, regardless of what quotes your region uses.  There exist english translations of a lot of english software already (en_UK etc) so adding en_US isn&#8217;t creating a major new translation job.</p>
<p>Obviously I wouldn&#8217;t bother changing old strings, as long as compilers aren&#8217;t erroring anyway, but a gradual shift doesn&#8217;t seem to be a lot of work.</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394587" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394587', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394587-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394587" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394587', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394587-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: simos</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394586</link>
		<dc:creator>simos</dc:creator>
		<pubDate>Wed, 14 May 2008 11:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394586</guid>
		<description>@Johannes: Even GNOME 2.20 had non-ASCII characters in the strings (for example, in evince), and there was complaint as far as I know. Of course, evince is a high-level application.
It would be a better diagnostic if we put non-ASCII characters in strings in, let&#039;s say, glib, then wait and see ;-).

@James, Davyd: If those strings are for the UI, it would be somewhat more difficult for the translators to figure out what the message says.

The current summary for this looks like: It appears to be ok to have UI strings with non-ASCII characters in GNOME applications, though it&#039;s not clear yet if it is ok for libraries (such as glib, gtk+). This is because these libraries may be used for embedded systems, etc where compilers may not like non-ascii source strings.</description>
		<content:encoded><![CDATA[<p>@Johannes: Even GNOME 2.20 had non-ASCII characters in the strings (for example, in evince), and there was complaint as far as I know. Of course, evince is a high-level application.<br />
It would be a better diagnostic if we put non-ASCII characters in strings in, let&#8217;s say, glib, then wait and see <img src='http://simos.info/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>@James, Davyd: If those strings are for the UI, it would be somewhat more difficult for the translators to figure out what the message says.</p>
<p>The current summary for this looks like: It appears to be ok to have UI strings with non-ASCII characters in GNOME applications, though it&#8217;s not clear yet if it is ok for libraries (such as glib, gtk+). This is because these libraries may be used for embedded systems, etc where compilers may not like non-ascii source strings.</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394586" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394586', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394586-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394586" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394586', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394586-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes</title>
		<link>http://simos.info/blog/archives/17/comment-page-1#comment-394585</link>
		<dc:creator>Johannes</dc:creator>
		<pubDate>Wed, 14 May 2008 09:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/simos/2008/05/14/should-ui-strings-in-source-code-have-non-ascii-characters/#comment-394585</guid>
		<description>Do all compilers allow non-ASCII characters in strings? I would expect that some C compilers might break.</description>
		<content:encoded><![CDATA[<p>Do all compilers allow non-ASCII characters in strings? I would expect that some C compilers might break.</p>
<p>Like or Dislike: <img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="up-394585" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_up.png" alt="Thumb up" onclick="javascript:ckratingKarma('394585', 'add', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_');" title="Thumb up" /> <span id="karma-394585-up" style="font-size:12px; color:#009933;">0</span>&nbsp;<img style="padding: 0px; border: none; cursor: pointer;" onmouseover="this.width=this.width*1.3" onmouseout="this.width=this.width/1.2" id="down-394585" src="http://simos.info/blog/wp-content/plugins/comment-rating/images/1_14_down.png" alt="Thumb down" onclick="javascript:ckratingKarma('394585', 'subtract', 'simos.info/blog/wp-content/plugins/comment-rating/', '1_14_')" title="Thumb down" /> <span id="karma-394585-down" style="font-size:12px; color:#990033;">0</span></p>]]></content:encoded>
	</item>
</channel>
</rss>

