<?xml version="1.0" encoding="windows-1252"?>
<node id="810262" title="Re^12: any use of 'use locale'? (source encoding)" created="2009-11-30 14:56:40" updated="2009-11-30 14:56:40">
<type id="11">
note</type>
<author id="551887">
wanradt</author>
<data>
<field name="doctext">
&lt;p&gt;I have more thinking to do with your answer, but main (for me) questions i can review. &lt;/p&gt;

&lt;blockquote&gt;&lt;i&gt;Pretending it would currently be possible to implement "use utf8_everywhere", it would break every single piece of code that assumes characters are bytes.&lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;Do you mean, that would break any code, which i incorporate to my project if i declare "use utf8_everywhere"?  Then, why it does not break now when i use same things (like "use utf8", "use open", binmode...) separately? &lt;/p&gt;

&lt;p&gt;Or do you mean, it will break "characters are bytes"-code, if they use "use uf8_everywhere"? Then i agree, but why they need such declaration?&lt;/p&gt;

&lt;blockquote&gt;&lt;i&gt;Assume you read four bytes 0x42 0xC3 0x84 0x48, e.g. from STDIN, a file you opened, an inherited file handle, a command line argument or an environment variable. How many characters do these bytes represent? Explain why&lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;If i am declared fully utf8 environment, i treat them being 3 utf8 characters. If i need some other behaviour, i ask it explicitly to handle the source which from those bytes are coming. Where is the problem? &lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-551887"&gt;
Nġnda, 
WK
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
808310</field>
<field name="parent_node">
809959</field>
</data>
</node>
