<?xml version="1.0" encoding="windows-1252"?>
<node id="936241" title="Re^2: Directory operations and Unicode" created="2011-11-06 01:21:31" updated="2011-11-06 01:21:31">
<type id="11">
note</type>
<author id="658643">
nikosv</author>
<data>
<field name="doctext">
When using Win32::COM I subsequently use the OS COM facilities, hence I bypass any Wide APIs, call the &lt;i&gt;Scripting.FileSystemObject&lt;/i&gt; and access the filesystem in UTF:  
&lt;code&gt;
Win32::OLE-&gt;Option(CP =&gt; Win32::OLE::CP_UTF8);
$obj = Win32::OLE-&gt;new('Scripting.FileSystemObject');
&lt;/code&gt;
and manipulate its methods, for example :  
&lt;code&gt;
$folder = $obj-&gt;GetFolder(".");
$collection= $folder-&gt;{Files};
&lt;/code&gt;
If you want to keep your sanity do not start looking into the wide API's ! :)</field>
<field name="root_node">
935347</field>
<field name="parent_node">
936221</field>
</data>
</node>
