Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Upside Down Text Revised

by Anonymous Monk
on Mar 08, 2013 at 02:45 UTC ( [id://1022335]=note: print w/replies, xml ) Need Help??


in reply to Re: Upside Down Text Revised
in thread Upside Down Text Revised

Try running it with perl -CS so it will UTF-8-encode the output

That is what printW does, see Win32::Unicode::Console

Replies are listed 'Best First'.
Re^3: Upside Down Text Revised
by mbethke (Hermit) on Mar 08, 2013 at 03:38 UTC
    Sorry, my bad! Well, that makes the terminal the main suspect. Maybe pipe to something akin to xxd on Windows, or perl -ne'printf "%02x ",ord $_ for split//' to further diagnose?

      I'm running on Windows XP if that makes a difference? As you can see from the output it is having trouble finding the upside down equivalent to the T, E, P, R, L, D, N. I have posted pictures here: Click Here to see the exact output.

        Text::UpsideDown is dead simple in this respect, it just replaces each ASCII character (except for symmetrical ones like H or I) with a corresponding Unicode character that looks like its upside-down version and returns you that string. The question marks are from your terminal. Maybe your font doesn't have the necessary characters? I don't remember how one changes the font in a Windows XP console but it should be possible to set something like Courier New that has good support for the more exotic ISO-10646 characters.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1022335]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-03-19 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found