Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Upside Down Text Revised

by PilotinControl (Scribe)
on Mar 08, 2013 at 07:03 UTC ( #1022348=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^4: Upside Down Text Revised
Re^5: Upside Down Text Revised
by mbethke (Hermit) on Mar 08, 2013 at 16:37 UTC
    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.

      I set the cmd.exe to Lucida Console and that did not improve anything. should I be editing files in Notepad instead of wordpad? This is perplexing

        should I be editing files in Notepad instead of wordpad?

        Um, that could help, maybe -- wordpad can edit "text" files, but if you save as rtf that won't work -- most programmers don't use wordpad

        Did you add Win32::Console::OutputCP( 65001 );??

        Did you check the bytes your program generates? How does it look in notepad.txt?

        yourprog.pl > thembytes.txt

        notepad thembytes.txt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (16)
As of 2014-07-30 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (235 votes), past polls