Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Problems? Is your data what you think it is?
 
PerlMonks  

What's with the weird accent "a" after I parse a table?

by jdlev (Scribe)
on Sep 23, 2013 at 23:50 UTC ( #1055410=perlquestion: print w/ replies, xml ) Need Help??
jdlev has asked for the wisdom of the Perl Monks concerning the following question:

So I get a number from a table. The number has an "a" behind it that has an accent mark over the top. What the heck is that for?????

I love it when a program comes together - jdhannibal

Comment on What's with the weird accent "a" after I parse a table?
Re: What's with the weird accent "a" after I parse a table? (biscuits)
by Anonymous Monk on Sep 23, 2013 at 23:54 UTC

    So I get a number from a table. The number has an "a" behind it that has an accent mark over the top. What the heck is that for?????

    I think its for pancakes :)

Re: What's with the weird accent "a" after I parse a table?
by runrig (Abbot) on Sep 24, 2013 at 00:01 UTC
    I was wondering where my 42 went to. I was saving it for a special occasion. Could you put it back on the table when you're done?
Re: What's with the weird accent "a" after I parse a table?
by graff (Chancellor) on Sep 24, 2013 at 05:18 UTC
    Were you maybe expecting the "a" with the accent to be in front of the number? Or maybe the accent should have been below the bottom? (Or maybe the letter above or below the number, with the accent behind or in front?)

    As for what it's for, you might ask whoever it was that probably put that in the table in the first place.

    Obviously, if it had been put there by code that you wrote, you'd know for sure what it was for, because you wrote the code that put it there. But only you would know that, since nobody here has seen your code yet.

Re: What's with the weird accent "a" after I parse a table?
by hdb (Parson) on Sep 24, 2013 at 05:45 UTC
Re: What's with the weird accent "a" after I parse a table?
by kcott (Abbot) on Sep 24, 2013 at 05:52 UTC

    G'day jdlev,

    Amazing! You've been here 5 years and still haven't read "How do I post a question effectively?". How about you do that now.

    Your problem is probably Unicode-related. If you update your post with a better question, you'll probably get a better answer.

    -- Ken

Re: What's with the weird accent "a" after I parse a table?
by mtmcc (Hermit) on Sep 24, 2013 at 10:34 UTC
    When it rains, it stops the top of the A getting wet. That's what they told me anyway...
Re: What's with the weird accent "a" after I parse a table?
by marinersk (Chaplain) on Sep 24, 2013 at 11:47 UTC
    LOL -- The Monks are showing little mercy today.

    We'd love to help you, but the description is too incomplete.

    • You are having a data issue -- we'll probably need to see data to figure out what is going on.
    • The data issue is being revealed by your Perl code -- we'll probably need to see Perl code to figure out what is going on.

    But we can't troubleshoot a drop of rain in an ocean of code -- so see if you can fabricate a very, very small code and data sample which reproduces the problem, and post it. (Don't forget the <code> and </code> tags!)

    You'll find that with an actual Perl problem to solve, the Monks become rather like sharks, tearing into the problem with even more frenzy than the gentle abuse you are currently receiving.

    And all of this is essentially a layman's summary of two nodes on PerlMonks that you probably need to read:

    Good luck!

Re: What's with the weird accent "a" after I parse a table?
by Tux (Monsignor) on Sep 24, 2013 at 11:48 UTC

    I'm almost sure that it is a unicode character like non-breaking-space (U+00A0), which shows up as (U+00C2) when you have set your display to iso-8859 instead of UTF-8 because the bytes to encode U+00A0 in UTF-8 are \xC2\xA0.

    There is no way to tell from your problem description where in the process you fail.


    Enjoy, Have FUN! H.Merijn
Re: What's with the weird accent "a" after I parse a table?
by Anonymous Monk on Sep 24, 2013 at 13:32 UTC
    Use the hexdump command-line utility or something like it to look at the bytes in the source file and in your output. Be sure you are using a UTF-aware Perl and maybe you need to specify -C on the command line.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2014-04-18 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls