Please help us help you better by answering the following questions:
- What is your code? Please edit your post and add the relevant code to it. Ideally you replace all variable parts that are read from files with hardcoded values. Make sure that the problem persists with the hardcoded values.
- How did your code "crash"? Please edit your post and add the exact error message you got from your code. We can't help you much without the error message, the line number and the code matching to that line number.
- Have you made sure that the problem is related to UTF-8-encoded filenames at all? Does the same code work with plain ASCII filenames? Please try out (and tell us about) the variations to find out the root cause of the problems.
- Are you certain that the filename is UTF-8? Not all filesystems and file system APIs encode non-ASCII filenames as UTF-8. For example on Windows, you need to use special versions of the file system API (the "Wide" functions) to access filenames with non-ASCII parts. See for example Win32::LongPath for a module that uses the Wide APIs.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|