Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hi, while testing Tk-thumbnail-viewer , I came across a problem, which I can't resolve. If you descend into the image subdir art/Paintings/Van_Gogh , there is a file named
Van_Gogh__Landscape_at_Saint_Rémy .png
as seen in Midnight Commander. If I do a dir, I see
Van_Gogh__Landscape_at_Saint_R\303\251my\ .png
Needless to say, when I try to open the file in my Tk program, it complains that "no such file exists". There are a few other files named this way, in the clipart package, and I want to know how to deal with them, so they will load in Perl.

My c based apps seem to find it.

I tried it from a gtk2 version of my viewer, and I get

*** Failed to open file './wpclipart_src-1.7/art/Paintings/Van_Gogh/ +Van_Gogh__Landscape_at_Saint_Rémy .png': No such file or directory +at ./gtk2_thumbnail_viewer1 line 272.
Somehow the Rémy turned into Rémy ??

Can anyone explain this for me?


I'm not really a human, but I play one on earth. flash japh

In reply to problems with extended ascii characters in filenames by zentara

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-16 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found