Is there any relation between hair style and character's personalities? Generally speaking, hairstyle in anime represent the character personality, like short hair girl should become tomboyish or ponytail make a girl seems sporty, etc. But what about the others? Like long straight hair, or idiot hair, twintail, etc.

What is common hair style for girls and guys in anime and what are the character represent?

ADD
There's a really fine blog about anime hair colors here thanks to @user1306322 comment below, I want an answer like that, but it's about hair style
Yes, there can be some common traits that similarly haired characters share. Of course this is not a definitive guide  to a character's personality and there will be many counterexamples.

Here are a couple of hairstyles and their common personalities:

Short hair is often seen on tomboys or alternativly 'average' characters. This is presumably so that they seem boyish or have a hairstyle that is not very exciting.







Kanbaru Sugura , Monogatari Series - a sporty fujioshi who is perhaps more boyish than the main , male, lead
Ranmaru Rindou, Binbougami ga! - a female delinquent who was brought up in a dojo like a male
Yuki Nagato , The Melancholy off Haruhi Suzimiya - emotionless
Kumin Tsuyuri - Chuunibyou demo Koi ga Shitai! - a member of the club who naps a lot.. And not much else


Twintails are often childlike or are childhood friends, this is because twintails are uncommon among older women, but more popular with young girls and society has associated the two:






Lingyin Huang - Infinite Stratos, a childish childhood friend
Azusa Nakano - K-on! , a new (childish) member of the light music club
Yuno Gasai, Future diary, a childhood friend of the main character with simple motivations.


Drill hair is usually a sign that a character is either wealthy or refined. This is probably because rich characters tend to be braggarts.







Selnia Iori Flameheart - ladies vs butlers - from a rich family
Mami Tomoe - Puella Madoka Magi Magicka - an experienced magical girl with refined taste
Akira Kogami - Lucky Star - drills?
Celestia Ludenberg - Dangan Ronpa - from a prestigious family


And let's not forget the dudes. If you see this delinquent hairstyle, you can almost certainly categorise that character:






Mondo Owada - Dangan Ronpa, Member of a biker gang
Kazu, Redline - a rebel race driver
Eikichi Onizuka, Shonan Junai Gumi 


I could go on and on, There are quite a number of examples 
including the somewhat well-known hair antennae linked earlier

But I think this should answer your question - Yes there can be a relationship between a character and their hairstyle, but its not a solid rule.

Also you should bear in mind that hairstyle trends will have changed throughout time - what was once in is now out and visa versa.

You don't see many girls like this in anime today:



Amano Ai - Video Girl Ai -